
;
;
;     Model statements for module:  Create 4
;

546$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c1:MinutesToBaseTime(1440):NEXT(547$);

547$          ASSIGN:        Create for receiving b shift1 c1.NumberOut=Create for receiving b shift1 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Decide 98
;
115$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),550$,Yes:
                             Else,551$,Yes;
550$          ASSIGN:        Decide 98.NumberOut True=Decide 98.NumberOut True + 1:NEXT(544$);

551$          ASSIGN:        Decide 98.NumberOut False=Decide 98.NumberOut False + 1:NEXT(116$);


;
;
;     Model statements for module:  Assign 198
;
544$          ASSIGN:        receiptb1# c1=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,67)
                             :NEXT(117$);


;
;
;     Model statements for module:  Decide 99
;
117$          BRANCH,        1:
                             If,receiptb1# c1==0,95$,Yes:
                             If,receiptb1# c1==1,118$,Yes:
                             Else,119$,Yes;

;
;
;     Model statements for module:  Separate 5
;
119$          DUPLICATE,     100 - 50:
                             receiptb1# c1-1,556$,50:NEXT(555$);

555$          ASSIGN:        Separate 5.NumberOut Orig=Separate 5.NumberOut Orig + 1:NEXT(118$);

556$          ASSIGN:        Separate 5.NumberOut Dup=Separate 5.NumberOut Dup + 1:NEXT(118$);


;
;
;     Model statements for module:  Process 10
;
118$          ASSIGN:        Process 10.NumberIn=Process 10.NumberIn + 1:
                             Process 10.WIP=Process 10.WIP+1;
586$          STACK,         1:Save:NEXT(560$);

560$          QUEUE,         Process 10.Queue;
559$          SEIZE,         2,VA:
                             Resource 4_1,1:NEXT(558$);

558$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c1,3)),,VA:NEXT(601$);

601$          ASSIGN:        Process 10.WaitTime=Process 10.WaitTime + Diff.WaitTime;
565$          TALLY:         Process 10.WaitTimePerEntity,Diff.WaitTime,1;
567$          TALLY:         Process 10.TotalTimePerEntity,Diff.StartTime,1;
591$          ASSIGN:        Process 10.VATime=Process 10.VATime + Diff.VATime;
592$          TALLY:         Process 10.VATimePerEntity,Diff.VATime,1;
557$          RELEASE:       Resource 4_1,1;
606$          STACK,         1:Destroy:NEXT(605$);

605$          ASSIGN:        Process 10.NumberOut=Process 10.NumberOut + 1:
                             Process 10.WIP=Process 10.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Assign 57
;
87$           ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Decide 121
;
180$          BRANCH,        1:
                             If,producttype==1,179$,Yes:
                             If,producttype==2,181$,Yes:
                             Else,182$,Yes;
182$          COUNT:         receiptctruck,1:NEXT(173$);


;
;
;     Model statements for module:  Assign 78
;
173$          ASSIGN:        receiptqenter=tnow:NEXT(171$);

171$          QUEUE,         receiptdockqueue;
161$          SEIZE,         2,Other:
                             SELECT(Docks,LRC,index),1:NEXT(162$);


;
;
;     Model statements for module:  Decide 116
;
162$          BRANCH,        1:
                             If,docks(index)==dock1,610$,Yes:
                             Else,611$,Yes;
610$          ASSIGN:        Decide 116.NumberOut True=Decide 116.NumberOut True + 1:NEXT(174$);

611$          ASSIGN:        Decide 116.NumberOut False=Decide 116.NumberOut False + 1:NEXT(300$);

174$          TALLY:         time in receiptq at d1,tnow-receiptqenter,1:NEXT(1$);


;
;
;     Model statements for module:  Assign 2
;
1$            ASSIGN:        truckcap=8:
                             dockno=1:NEXT(2$);

2$            DUPLICATE:     truckcap-1,69$:NEXT(69$);


;
;
;     Model statements for module:  Process 1
;
69$           ASSIGN:        Unloading from dock1.NumberIn=Unloading from dock1.NumberIn + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP+1;
641$          STACK,         1:Save:NEXT(615$);

615$          QUEUE,         Unloading from dock1.Queue;
614$          SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(613$);

613$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(656$);

656$          ASSIGN:        Unloading from dock1.WaitTime=Unloading from dock1.WaitTime + Diff.WaitTime;
620$          TALLY:         Unloading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
622$          TALLY:         Unloading from dock1.TotalTimePerEntity,Diff.StartTime,1;
646$          ASSIGN:        Unloading from dock1.VATime=Unloading from dock1.VATime + Diff.VATime;
647$          TALLY:         Unloading from dock1.VATimePerEntity,Diff.VATime,1;
612$          RELEASE:       SELECT(TransSet4,LAST),1;
661$          STACK,         1:Destroy:NEXT(660$);

660$          ASSIGN:        Unloading from dock1.NumberOut=Unloading from dock1.NumberOut + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP-1:NEXT(302$);


;
;
;     Model statements for module:  Assign 110
;
302$          ASSIGN:        beginning time for putaway from d1=tnow:NEXT(165$);

165$          ASSIGN:        product3stock=(producttype==3)*(product3stock+1)+(producttype<>3)*(product3stock+0):
                             product2stock=(producttype==2)*(product2stock+1)+(producttype<>2)*(product2stock+0):
                             product1stock=(producttype==1)*(product1stock+1)+(producttype<>1)*(product1stock+0);
167$          WRITE,         stockr:
                             totalstock,
                             tnow:NEXT(3$);


;
;
;     Model statements for module:  Assign 3
;
3$            ASSIGN:        i=1:NEXT(4$);


;
;
;     Model statements for module:  Assign 4
;
4$            ASSIGN:        replaced=0:NEXT(5$);

5$            WHILE:         (replaced==0):NEXT(8$);


;
;
;     Model statements for module:  Decide 3
;
8$            BRANCH,        1:
                             If,(LocationA(i,1) == 0) ||  ( (producttype  ==  LocationA (i,2)) && (LocationA(i,1) < Capacity) ),
                             663$,Yes:
                             Else,664$,Yes;
663$          ASSIGN:        Decide 3.NumberOut True=Decide 3.NumberOut True + 1:NEXT(7$);

664$          ASSIGN:        Decide 3.NumberOut False=Decide 3.NumberOut False + 1:NEXT(10$);

7$            ASSIGN:        LocationA(i,1)=LocationA(i,1)+1:
                             LocationA(i,2)=producttype:NEXT(11$);


;
;
;     Model statements for module:  Assign 11
;
11$           ASSIGN:        Locationtype=1:NEXT(57$);


;
;
;     Model statements for module:  Decide 45
;
57$           BRANCH,        1:
                             If,dockno==1,665$,Yes:
                             Else,666$,Yes;
665$          ASSIGN:        Decide 45.NumberOut True=Decide 45.NumberOut True + 1:NEXT(511$);

666$          ASSIGN:        Decide 45.NumberOut False=Decide 45.NumberOut False + 1:NEXT(510$);


;
;
;     Model statements for module:  Assign 183
;
511$          ASSIGN:        width1=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance1=20+i*1+width1:NEXT(13$);


;
;
;     Model statements for module:  Assign 13
;
13$           ASSIGN:        replaced=1:NEXT(14$);

14$           ENDWHILE:NEXT(54$);


;
;
;     Model statements for module:  Decide 44
;
54$           BRANCH,        1:
                             If,dockno==1,667$,Yes:
                             Else,668$,Yes;
667$          ASSIGN:        Decide 44.NumberOut True=Decide 44.NumberOut True + 1:NEXT(16$);

668$          ASSIGN:        Decide 44.NumberOut False=Decide 44.NumberOut False + 1:NEXT(55$);


;
;
;     Model statements for module:  Seize 2
;
16$           QUEUE,         Seizing a forklift from forklift set at receiving ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet1,CYC, trans_no1),1:NEXT(670$);

670$          DELAY:         0.0,,VA:NEXT(530$);


;
;
;     Model statements for module:  Decide 229
;
530$          BRANCH,        1:
                             If,stock exceeded<>1,671$,Yes:
                             Else,672$,Yes;
671$          ASSIGN:        Decide 229.NumberOut True=Decide 229.NumberOut True + 1:NEXT(18$);

672$          ASSIGN:        Decide 229.NumberOut False=Decide 229.NumberOut False + 1:NEXT(531$);


;
;
;     Model statements for module:  Delay 1
;
18$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance1)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance3)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance5)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance7)+NORM(0,7.3))*2)),,
                             Other:NEXT(19$);

19$           RELEASE:       Member(TransSet1, Trans_No1),1;
304$          TALLY:         time for putaway from d1,tnow-beginning time for putaway from d1,1;
214$          ASSIGN:        #unloaded1=#unloaded1+1:NEXT(20$);


;
;
;     Model statements for module:  Decide 6
;
20$           BRANCH,        1:
                             If,#unloaded1==truckcap,673$,Yes:
                             Else,674$,Yes;
673$          ASSIGN:        Decide 6.NumberOut True=Decide 6.NumberOut True + 1:NEXT(21$);

674$          ASSIGN:        Decide 6.NumberOut False=Decide 6.NumberOut False + 1:NEXT(15$);


;
;
;     Model statements for module:  Release 1
;
21$           RELEASE:       dock1,1:NEXT(184$);

184$          TALLY:         time in system from d1,tnow-receiptqenter,1;
215$          ASSIGN:        #unloaded1=#unloaded1-#unloaded1:NEXT(15$);


;
;
;     Model statements for module:  Dispose 1
;
15$           ASSIGN:        Dispose 1.NumberOut=Dispose 1.NumberOut + 1;
675$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 14
;
531$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(19$);


;
;
;     Model statements for module:  Seize 15
;
55$           QUEUE,         Seizing a forklift from forklift set at receiving ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet2,CYC, trans_no2),1:NEXT(677$);

677$          DELAY:         0.0,,VA:NEXT(533$);


;
;
;     Model statements for module:  Decide 230
;
533$          BRANCH,        1:
                             If,stock exceeded<>1,678$,Yes:
                             Else,679$,Yes;
678$          ASSIGN:        Decide 230.NumberOut True=Decide 230.NumberOut True + 1:NEXT(58$);

679$          ASSIGN:        Decide 230.NumberOut False=Decide 230.NumberOut False + 1:NEXT(532$);


;
;
;     Model statements for module:  Delay 11
;
58$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance2)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance4)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance6)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance8)+NORM(0,7.3))*2)),,
                             Other:NEXT(59$);

59$           RELEASE:       Member(TransSet2, Trans_No2),1;
305$          TALLY:         time for putaway from d2,tnow-beginning time for putaway from d2,1;
216$          ASSIGN:        #unloaded2=#unloaded2+1:NEXT(61$);


;
;
;     Model statements for module:  Decide 56
;
61$           BRANCH,        1:
                             If,#unloaded2==truckcap,680$,Yes:
                             Else,681$,Yes;
680$          ASSIGN:        Decide 56.NumberOut True=Decide 56.NumberOut True + 1:NEXT(62$);

681$          ASSIGN:        Decide 56.NumberOut False=Decide 56.NumberOut False + 1:NEXT(60$);


;
;
;     Model statements for module:  Release 15
;
62$           RELEASE:       dock2,1:NEXT(183$);

183$          TALLY:         time in system from d2,tnow-receiptqenter,1;
217$          ASSIGN:        #unloaded2=#unloaded2-#unloaded2:NEXT(60$);


;
;
;     Model statements for module:  Dispose 15
;
60$           ASSIGN:        Dispose 15.NumberOut=Dispose 15.NumberOut + 1;
682$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 15
;
532$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(59$);


;
;
;     Model statements for module:  Assign 182
;
510$          ASSIGN:        width2=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance2=23+i*1+width2:NEXT(13$);


;
;
;     Model statements for module:  Decide 4
;
10$           BRANCH,        1:
                             If,
                             ((LocationB(i,1) == 0) ||  ( (producttype  ==  LocationB (i,2)) && (LocationB(i,1) < Capacity) )),
                             683$,Yes:
                             Else,684$,Yes;
683$          ASSIGN:        Decide 4.NumberOut True=Decide 4.NumberOut True + 1:NEXT(6$);

684$          ASSIGN:        Decide 4.NumberOut False=Decide 4.NumberOut False + 1:NEXT(71$);

6$            ASSIGN:        LocationB(i,1)=LocationB(i,1)+1:
                             LocationB(i,2)=producttype:NEXT(12$);


;
;
;     Model statements for module:  Assign 12
;
12$           ASSIGN:        Locationtype=2:NEXT(512$);


;
;
;     Model statements for module:  Decide 223
;
512$          BRANCH,        1:
                             If,dockno==1,685$,Yes:
                             Else,686$,Yes;
685$          ASSIGN:        Decide 223.NumberOut True=Decide 223.NumberOut True + 1:NEXT(513$);

686$          ASSIGN:        Decide 223.NumberOut False=Decide 223.NumberOut False + 1:NEXT(514$);


;
;
;     Model statements for module:  Assign 184
;
513$          ASSIGN:        width3=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance3=20+i*1+width3:NEXT(13$);


;
;
;     Model statements for module:  Assign 186
;
514$          ASSIGN:        width4=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance4=23+i*1+width4:NEXT(13$);


;
;
;     Model statements for module:  Decide 67
;
71$           BRANCH,        1:
                             If,((LocationC(i,1) == 0) ||  ( (producttype  ==  LocationC (i,2)) && (LocationC(i,1) < 8) )),687$,
                             Yes:
                             Else,688$,Yes;
687$          ASSIGN:        Decide 67.NumberOut True=Decide 67.NumberOut True + 1:NEXT(72$);

688$          ASSIGN:        Decide 67.NumberOut False=Decide 67.NumberOut False + 1:NEXT(150$);

72$           ASSIGN:        LocationC(i,1)=LocationC(i,1)+1:
                             LocationC(i,2)=producttype:NEXT(73$);


;
;
;     Model statements for module:  Assign 49
;
73$           ASSIGN:        Locationtype=3:NEXT(74$);


;
;
;     Model statements for module:  Decide 68
;
74$           BRANCH,        1:
                             If,dockno==1,689$,Yes:
                             Else,690$,Yes;
689$          ASSIGN:        Decide 68.NumberOut True=Decide 68.NumberOut True + 1:NEXT(75$);

690$          ASSIGN:        Decide 68.NumberOut False=Decide 68.NumberOut False + 1:NEXT(76$);


;
;
;     Model statements for module:  Assign 51
;
75$           ASSIGN:        width5=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance5=13+i*1+width5:NEXT(13$);


;
;
;     Model statements for module:  Assign 52
;
76$           ASSIGN:        width6=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance6=14+i*1+width6:NEXT(13$);


;
;
;     Model statements for module:  Decide 110
;
150$          BRANCH,        1:
                             If,((LocationD(i,1) == 0) ||  ( (producttype  ==  LocationD (i,2)) && (LocationD(i,1) < 8) )),691$,
                             Yes:
                             Else,692$,Yes;
691$          ASSIGN:        Decide 110.NumberOut True=Decide 110.NumberOut True + 1:NEXT(151$);

692$          ASSIGN:        Decide 110.NumberOut False=Decide 110.NumberOut False + 1:NEXT(9$);

151$          ASSIGN:        LocationD(i,1)=LocationD(i,1)+1:
                             LocationD(i,2)=producttype:NEXT(152$);


;
;
;     Model statements for module:  Assign 76
;
152$          ASSIGN:        Locationtype=4:NEXT(515$);


;
;
;     Model statements for module:  Decide 224
;
515$          BRANCH,        1:
                             If,dockno==1,693$,Yes:
                             Else,694$,Yes;
693$          ASSIGN:        Decide 224.NumberOut True=Decide 224.NumberOut True + 1:NEXT(516$);

694$          ASSIGN:        Decide 224.NumberOut False=Decide 224.NumberOut False + 1:NEXT(517$);


;
;
;     Model statements for module:  Assign 189
;
516$          ASSIGN:        width7=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance7=13+i*1+width7:NEXT(13$);


;
;
;     Model statements for module:  Assign 190
;
517$          ASSIGN:        width8=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance8=14+i*1+width8:NEXT(13$);


;
;
;     Model statements for module:  Assign 10
;
9$            ASSIGN:        i=i+1:NEXT(528$);


;
;
;     Model statements for module:  Decide 228
;
528$          BRANCH,        1:
                             If,i<=231,695$,Yes:
                             Else,696$,Yes;
695$          ASSIGN:        Decide 228.NumberOut True=Decide 228.NumberOut True + 1:NEXT(14$);

696$          ASSIGN:        Decide 228.NumberOut False=Decide 228.NumberOut False + 1:NEXT(529$);


;
;
;     Model statements for module:  Assign 196
;
529$          ASSIGN:        stock exceeded=1:NEXT(524$);


;
;
;     Model statements for module:  Decide 227
;
524$          BRANCH,        1:
                             If,producttype==1,525$,Yes:
                             If,producttype==2,526$,Yes:
                             Else,527$,Yes;
527$          ASSIGN:        stock3=stock3+1:NEXT(54$);

525$          ASSIGN:        stock1=stock1+1:NEXT(54$);

526$          ASSIGN:        stock2=stock2+1:NEXT(54$);

300$          TALLY:         time in receiptq at d2,tnow-receiptqenter,1:NEXT(22$);


;
;
;     Model statements for module:  Assign 15
;
22$           ASSIGN:        truckcap=8:
                             dockno=2:NEXT(23$);

23$           DUPLICATE:     truckcap-1,70$:NEXT(70$);


;
;
;     Model statements for module:  Process 2
;
70$           ASSIGN:        Unloading from dock2.NumberIn=Unloading from dock2.NumberIn + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP+1;
728$          STACK,         1:Save:NEXT(702$);

702$          QUEUE,         Unloading from dock2.Queue;
701$          SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(700$);

700$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(743$);

743$          ASSIGN:        Unloading from dock2.WaitTime=Unloading from dock2.WaitTime + Diff.WaitTime;
707$          TALLY:         Unloading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
709$          TALLY:         Unloading from dock2.TotalTimePerEntity,Diff.StartTime,1;
733$          ASSIGN:        Unloading from dock2.VATime=Unloading from dock2.VATime + Diff.VATime;
734$          TALLY:         Unloading from dock2.VATimePerEntity,Diff.VATime,1;
699$          RELEASE:       SELECT(TransSet5,LAST),1;
748$          STACK,         1:Destroy:NEXT(747$);

747$          ASSIGN:        Unloading from dock2.NumberOut=Unloading from dock2.NumberOut + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP-1:NEXT(303$);


;
;
;     Model statements for module:  Assign 111
;
303$          ASSIGN:        beginning time for putaway from d2=tnow:NEXT(165$);

179$          COUNT:         receiptatruck,1:NEXT(173$);

181$          COUNT:         receiptbtruck,1:NEXT(173$);


;
;
;     Model statements for module:  Dispose 16
;
95$           ASSIGN:        Dispose 16.NumberOut=Dispose 16.NumberOut + 1;
750$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 69
;
116$          ASSIGN:        receiptb2# c1=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,68)
                             :NEXT(120$);


;
;
;     Model statements for module:  Decide 100
;
120$          BRANCH,        1:
                             If,receiptb2# c1==0,95$,Yes:
                             If,receiptb2# c1==1,121$,Yes:
                             Else,122$,Yes;

;
;
;     Model statements for module:  Separate 6
;
122$          DUPLICATE,     100 - 50:
                             receiptb2# c1-1,755$,50:NEXT(754$);

754$          ASSIGN:        Separate 6.NumberOut Orig=Separate 6.NumberOut Orig + 1:NEXT(121$);

755$          ASSIGN:        Separate 6.NumberOut Dup=Separate 6.NumberOut Dup + 1:NEXT(121$);


;
;
;     Model statements for module:  Process 11
;
121$          ASSIGN:        Process 11.NumberIn=Process 11.NumberIn + 1:
                             Process 11.WIP=Process 11.WIP+1;
785$          STACK,         1:Save:NEXT(759$);

759$          QUEUE,         Process 11.Queue;
758$          SEIZE,         2,VA:
                             Resource 5,1:NEXT(757$);

757$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c1,4)),,VA:NEXT(800$);

800$          ASSIGN:        Process 11.WaitTime=Process 11.WaitTime + Diff.WaitTime;
764$          TALLY:         Process 11.WaitTimePerEntity,Diff.WaitTime,1;
766$          TALLY:         Process 11.TotalTimePerEntity,Diff.StartTime,1;
790$          ASSIGN:        Process 11.VATime=Process 11.VATime + Diff.VATime;
791$          TALLY:         Process 11.VATimePerEntity,Diff.VATime,1;
756$          RELEASE:       Resource 5,1;
805$          STACK,         1:Destroy:NEXT(804$);

804$          ASSIGN:        Process 11.NumberOut=Process 11.NumberOut + 1:
                             Process 11.WIP=Process 11.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Create 5
;

807$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c1:MinutesToBaseTime(1440):NEXT(808$);

808$          ASSIGN:        Create for receiving c shift1 c1.NumberOut=Create for receiving c shift1 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Decide 101
;
123$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),811$,Yes:
                             Else,812$,Yes;
811$          ASSIGN:        Decide 101.NumberOut True=Decide 101.NumberOut True + 1:NEXT(124$);

812$          ASSIGN:        Decide 101.NumberOut False=Decide 101.NumberOut False + 1:NEXT(125$);


;
;
;     Model statements for module:  Assign 70
;
124$          ASSIGN:        receiptc1# c1=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,69)
                             :NEXT(126$);


;
;
;     Model statements for module:  Decide 102
;
126$          BRANCH,        1:
                             If,receiptc1# c1==0,95$,Yes:
                             If,receiptc1# c1==1,127$,Yes:
                             Else,128$,Yes;

;
;
;     Model statements for module:  Separate 7
;
128$          DUPLICATE,     100 - 50:
                             receiptc1# c1-1,817$,50:NEXT(816$);

816$          ASSIGN:        Separate 7.NumberOut Orig=Separate 7.NumberOut Orig + 1:NEXT(127$);

817$          ASSIGN:        Separate 7.NumberOut Dup=Separate 7.NumberOut Dup + 1:NEXT(127$);


;
;
;     Model statements for module:  Process 12
;
127$          ASSIGN:        Process 12.NumberIn=Process 12.NumberIn + 1:
                             Process 12.WIP=Process 12.WIP+1;
847$          STACK,         1:Save:NEXT(821$);

821$          QUEUE,         Process 12.Queue;
820$          SEIZE,         2,VA:
                             Resource 6,1:NEXT(819$);

819$          DELAY:         HoursToBaseTime(expo(10/receiptc1# c1,5)),,VA:NEXT(862$);

862$          ASSIGN:        Process 12.WaitTime=Process 12.WaitTime + Diff.WaitTime;
826$          TALLY:         Process 12.WaitTimePerEntity,Diff.WaitTime,1;
828$          TALLY:         Process 12.TotalTimePerEntity,Diff.StartTime,1;
852$          ASSIGN:        Process 12.VATime=Process 12.VATime + Diff.VATime;
853$          TALLY:         Process 12.VATimePerEntity,Diff.VATime,1;
818$          RELEASE:       Resource 6,1;
867$          STACK,         1:Destroy:NEXT(866$);

866$          ASSIGN:        Process 12.NumberOut=Process 12.NumberOut + 1:
                             Process 12.WIP=Process 12.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Assign 58
;
88$           ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 71
;
125$          ASSIGN:        receiptc2# c1=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,70)
                             :NEXT(129$);


;
;
;     Model statements for module:  Decide 103
;
129$          BRANCH,        1:
                             If,receiptc2# c1==0,95$,Yes:
                             If,receiptc2# c1==1,130$,Yes:
                             Else,131$,Yes;

;
;
;     Model statements for module:  Separate 8
;
131$          DUPLICATE,     100 - 50:
                             receiptc2# c1-1,873$,50:NEXT(872$);

872$          ASSIGN:        Separate 8.NumberOut Orig=Separate 8.NumberOut Orig + 1:NEXT(130$);

873$          ASSIGN:        Separate 8.NumberOut Dup=Separate 8.NumberOut Dup + 1:NEXT(130$);


;
;
;     Model statements for module:  Process 13
;
130$          ASSIGN:        Process 13.NumberIn=Process 13.NumberIn + 1:
                             Process 13.WIP=Process 13.WIP+1;
903$          STACK,         1:Save:NEXT(877$);

877$          QUEUE,         Process 13.Queue;
876$          SEIZE,         2,VA:
                             Resource 7,1:NEXT(875$);

875$          DELAY:         HoursToBaseTime(expo(14/receiptc2# c1,6)),,VA:NEXT(918$);

918$          ASSIGN:        Process 13.WaitTime=Process 13.WaitTime + Diff.WaitTime;
882$          TALLY:         Process 13.WaitTimePerEntity,Diff.WaitTime,1;
884$          TALLY:         Process 13.TotalTimePerEntity,Diff.StartTime,1;
908$          ASSIGN:        Process 13.VATime=Process 13.VATime + Diff.VATime;
909$          TALLY:         Process 13.VATimePerEntity,Diff.VATime,1;
874$          RELEASE:       Resource 7,1;
923$          STACK,         1:Destroy:NEXT(922$);

922$          ASSIGN:        Process 13.NumberOut=Process 13.NumberOut + 1:
                             Process 13.WIP=Process 13.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Create 6
;

925$          CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c1:MinutesToBaseTime(1440):NEXT(926$);

926$          ASSIGN:        Create for shipment b shift1 c1.NumberOut=Create for shipment b shift1 c1.NumberOut + 1:NEXT(132$);


;
;
;     Model statements for module:  Decide 104
;
132$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),929$,Yes:
                             Else,930$,Yes;
929$          ASSIGN:        Decide 104.NumberOut True=Decide 104.NumberOut True + 1:NEXT(133$);

930$          ASSIGN:        Decide 104.NumberOut False=Decide 104.NumberOut False + 1:NEXT(134$);


;
;
;     Model statements for module:  Assign 72
;
133$          ASSIGN:        departureb1# c1=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,97):NEXT(135$);


;
;
;     Model statements for module:  Decide 105
;
135$          BRANCH,        1:
                             If,departureb1# c1==0,108$,Yes:
                             If,departureb1# c1==1,136$,Yes:
                             Else,137$,Yes;

;
;
;     Model statements for module:  Separate 9
;
137$          DUPLICATE,     100 - 50:
                             departureb1# c1-1,935$,50:NEXT(934$);

934$          ASSIGN:        Separate 9.NumberOut Orig=Separate 9.NumberOut Orig + 1:NEXT(136$);

935$          ASSIGN:        Separate 9.NumberOut Dup=Separate 9.NumberOut Dup + 1:NEXT(136$);


;
;
;     Model statements for module:  Process 14
;
136$          ASSIGN:        Process 14.NumberIn=Process 14.NumberIn + 1:
                             Process 14.WIP=Process 14.WIP+1;
965$          STACK,         1:Save:NEXT(939$);

939$          QUEUE,         Process 14.Queue;
938$          SEIZE,         2,VA:
                             Resource 8,1:NEXT(937$);

937$          DELAY:         HoursToBaseTime(expo(10/departureb1# c1,33)),,VA:NEXT(980$);

980$          ASSIGN:        Process 14.WaitTime=Process 14.WaitTime + Diff.WaitTime;
944$          TALLY:         Process 14.WaitTimePerEntity,Diff.WaitTime,1;
946$          TALLY:         Process 14.TotalTimePerEntity,Diff.StartTime,1;
970$          ASSIGN:        Process 14.VATime=Process 14.VATime + Diff.VATime;
971$          TALLY:         Process 14.VATimePerEntity,Diff.VATime,1;
936$          RELEASE:       Resource 8,1;
985$          STACK,         1:Destroy:NEXT(984$);

984$          ASSIGN:        Process 14.NumberOut=Process 14.NumberOut + 1:
                             Process 14.WIP=Process 14.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Assign 60
;
90$           ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Decide 115
;
158$          BRANCH,        1:
                             If,type==1,168$,Yes:
                             If,type==2,169$,Yes:
                             Else,170$,Yes;

;
;
;     Model statements for module:  Decide 120
;
170$          BRANCH,        1:
                             If,product3stock>=safety stock,989$,Yes:
                             Else,990$,Yes;
989$          ASSIGN:        Decide 120.NumberOut True=Decide 120.NumberOut True + 1:NEXT(224$);

990$          ASSIGN:        Decide 120.NumberOut False=Decide 120.NumberOut False + 1:NEXT(160$);

224$          COUNT:         dispatchctruck,1:NEXT(24$);


;
;
;     Model statements for module:  Assign 23
;
24$           ASSIGN:        ordersize=8:
                             shipmentqenter=tnow:NEXT(68$);

68$           ASSIGN:        product2stock=(type==2)*(product2stock-8)+(type<>2)*(product2stock-0):
                             product3stock=(type==3)*(product3stock-8)+(type<>3)*(product3stock-0):
                             product1stock=(type==1)*(product1stock-8)+(type<>1)*(product1stock-0);
166$          WRITE,         stock:
                             totalstock,
                             tnow;
172$          QUEUE,         shipmentdockqueue;
163$          SEIZE,         1,Other:
                             SELECT(S_docks,LRC,s_index),1:NEXT(164$);


;
;
;     Model statements for module:  Decide 117
;
164$          BRANCH,        1:
                             If,s_docks(s_index)==dock1,991$,Yes:
                             Else,992$,Yes;
991$          ASSIGN:        Decide 117.NumberOut True=Decide 117.NumberOut True + 1:NEXT(175$);

992$          ASSIGN:        Decide 117.NumberOut False=Decide 117.NumberOut False + 1:NEXT(301$);

175$          TALLY:         time in shipmentq at d1,tnow-shipmentqenter,1:NEXT(66$);


;
;
;     Model statements for module:  Assign 47
;
66$           ASSIGN:        dock_no=1:
                             leave the dock1 queue=tnow:NEXT(26$);

26$           DUPLICATE:     ordersize-1,25$:NEXT(25$);


;
;
;     Model statements for module:  Assign 24
;
25$           ASSIGN:        picked=0:
                             k=1:
                             totalstock=product1stock+product2stock+product3stock:
                             totalexceedingstock=stock1+stock2+stock3:NEXT(27$);

27$           WHILE:         (picked==0):NEXT(28$);


;
;
;     Model statements for module:  Decide 17
;
28$           BRANCH,        1:
                             If,( LocationA(k,1) <> 0  )  &&  ( type == LocationA(k,2) ),993$,Yes:
                             Else,994$,Yes;
993$          ASSIGN:        Decide 17.NumberOut True=Decide 17.NumberOut True + 1:NEXT(29$);

994$          ASSIGN:        Decide 17.NumberOut False=Decide 17.NumberOut False + 1:NEXT(33$);

29$           ASSIGN:        LocationA(k,1)=LocationA(k,1)-1:NEXT(30$);


;
;
;     Model statements for module:  Assign 27
;
30$           ASSIGN:        picked=1:
                             Locationtype=1:NEXT(31$);


;
;
;     Model statements for module:  Decide 18
;
31$           BRANCH,        1:
                             If,LocationA(k,1)==0,995$,Yes:
                             Else,996$,Yes;
995$          ASSIGN:        Decide 18.NumberOut True=Decide 18.NumberOut True + 1:NEXT(32$);

996$          ASSIGN:        Decide 18.NumberOut False=Decide 18.NumberOut False + 1:NEXT(63$);

32$           ASSIGN:        LocationA(k,2)=0:NEXT(63$);


;
;
;     Model statements for module:  Decide 57
;
63$           BRANCH,        1:
                             If,dock_no==1,997$,Yes:
                             Else,998$,Yes;
997$          ASSIGN:        Decide 57.NumberOut True=Decide 57.NumberOut True + 1:NEXT(64$);

998$          ASSIGN:        Decide 57.NumberOut False=Decide 57.NumberOut False + 1:NEXT(65$);


;
;
;     Model statements for module:  Assign 43
;
64$           ASSIGN:        width9=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance9=20+k*1+width9:NEXT(38$);

38$           ENDWHILE:NEXT(42$);


;
;
;     Model statements for module:  Decide 22
;
42$           BRANCH,        1:
                             If,dock_no==1,999$,Yes:
                             Else,1000$,Yes;
999$          ASSIGN:        Decide 22.NumberOut True=Decide 22.NumberOut True + 1:NEXT(40$);

1000$         ASSIGN:        Decide 22.NumberOut False=Decide 22.NumberOut False + 1:NEXT(50$);


;
;
;     Model statements for module:  Seize 9
;
40$           QUEUE,         Seizing a forklift from forklift set at shipment ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet3,CYC, trans_no3),1:NEXT(1002$);

1002$         DELAY:         0.0,,VA:NEXT(540$);


;
;
;     Model statements for module:  Decide 233
;
540$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1003$,Yes:
                             Else,1004$,Yes;
1003$         ASSIGN:        Decide 233.NumberOut True=Decide 233.NumberOut True + 1:NEXT(43$);

1004$         ASSIGN:        Decide 233.NumberOut False=Decide 233.NumberOut False + 1:NEXT(541$);


;
;
;     Model statements for module:  Delay 5
;
43$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance9)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance11)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance13)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance15)+NORM(0,7.3))*2)),,
                             Other:NEXT(93$);

93$           RELEASE:       Member(TransSet3, trans_no3),1;
497$          ASSIGN:        #product from d1=#product from d1+1:NEXT(189$);


;
;
;     Model statements for module:  Decide 123
;
189$          BRANCH,        1:
                             If,#product from d1==8,1005$,Yes:
                             Else,1006$,Yes;
1005$         ASSIGN:        Decide 123.NumberOut True=Decide 123.NumberOut True + 1:NEXT(228$);

1006$         ASSIGN:        Decide 123.NumberOut False=Decide 123.NumberOut False + 1:NEXT(505$);

228$          TALLY:         time for pickup to d1,tnow-leave the dock1 queue,1;
498$          ASSIGN:        #product from d1=#product from d1-#product from d1:NEXT(86$);


;
;
;     Model statements for module:  Process 5
;
86$           ASSIGN:        Loading from dock1.NumberIn=Loading from dock1.NumberIn + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP+1;
1036$         STACK,         1:Save:NEXT(1010$);

1010$         QUEUE,         Loading from dock1.Queue;
1009$         SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(1008$);

1008$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1051$);

1051$         ASSIGN:        Loading from dock1.WaitTime=Loading from dock1.WaitTime + Diff.WaitTime;
1015$         TALLY:         Loading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
1017$         TALLY:         Loading from dock1.TotalTimePerEntity,Diff.StartTime,1;
1041$         ASSIGN:        Loading from dock1.VATime=Loading from dock1.VATime + Diff.VATime;
1042$         TALLY:         Loading from dock1.VATimePerEntity,Diff.VATime,1;
1007$         RELEASE:       SELECT(TransSet4,LAST),1;
1056$         STACK,         1:Destroy:NEXT(1055$);

1055$         ASSIGN:        Loading from dock1.NumberOut=Loading from dock1.NumberOut + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP-1:NEXT(218$);

218$          ASSIGN:        #loaded1=#loaded1+1:NEXT(46$);


;
;
;     Model statements for module:  Decide 38
;
46$           BRANCH,        1:
                             If,#loaded1==ordersize,1058$,Yes:
                             Else,1059$,Yes;
1058$         ASSIGN:        Decide 38.NumberOut True=Decide 38.NumberOut True + 1:NEXT(44$);

1059$         ASSIGN:        Decide 38.NumberOut False=Decide 38.NumberOut False + 1:NEXT(45$);


;
;
;     Model statements for module:  Release 13
;
44$           RELEASE:       dock1,1:NEXT(219$);

219$          ASSIGN:        #loaded1=#loaded1-#loaded1;
230$          TALLY:         time in system from d1 for shipment,tnow-shipmentqenter,1;
296$          COUNT:         # of trucks that are in system  more than 60 minutes from d1,(tnow-shipmentqenter)>60;
492$          COUNT:         # of trucks that are in system  more than 45 minutes from d1,(tnow-shipmentqenter)>45;
297$          COUNT:         #of trucks that are from d1,1;
495$          TALLY:         time for loading at d1,tnow-starting time of loading at d1,1:NEXT(45$);


;
;
;     Model statements for module:  Dispose 13
;
45$           ASSIGN:        Dispose 13.NumberOut=Dispose 13.NumberOut + 1;
1060$         DISPOSE:       Yes;

505$          ASSIGN:        #product being loaded from d1=#product being loaded from d1+1:NEXT(507$);


;
;
;     Model statements for module:  Decide 219
;
507$          BRANCH,        1:
                             If,#product being loaded from d1==1,1061$,Yes:
                             Else,1062$,Yes;
1061$         ASSIGN:        Decide 219.NumberOut True=Decide 219.NumberOut True + 1:NEXT(506$);

1062$         ASSIGN:        Decide 219.NumberOut False=Decide 219.NumberOut False + 1:NEXT(508$);


;
;
;     Model statements for module:  Assign 177
;
506$          ASSIGN:        starting time of loading at d1=tnow:NEXT(86$);


;
;
;     Model statements for module:  Decide 220
;
508$          BRANCH,        1:
                             If,#product being loaded from d1==7,1063$,Yes:
                             Else,1064$,Yes;
1063$         ASSIGN:        Decide 220.NumberOut True=Decide 220.NumberOut True + 1:NEXT(509$);

1064$         ASSIGN:        Decide 220.NumberOut False=Decide 220.NumberOut False + 1:NEXT(86$);

509$          ASSIGN:        #product being loaded from d1=#product being loaded from d1-#product being loaded from d1:NEXT(86$);


;
;
;     Model statements for module:  Delay 17
;
541$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(93$);


;
;
;     Model statements for module:  Seize 12
;
50$           QUEUE,         Seizing a forklift from forklift set at shipment ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet6,CYC, trans_no6),1:NEXT(1066$);

1066$         DELAY:         0.0,,VA:NEXT(542$);


;
;
;     Model statements for module:  Decide 234
;
542$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1067$,Yes:
                             Else,1068$,Yes;
1067$         ASSIGN:        Decide 234.NumberOut True=Decide 234.NumberOut True + 1:NEXT(52$);

1068$         ASSIGN:        Decide 234.NumberOut False=Decide 234.NumberOut False + 1:NEXT(543$);


;
;
;     Model statements for module:  Delay 8
;
52$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance10)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance12)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance14)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance16)+NORM(0,7.3))*2)),,
                             Other:NEXT(53$);

53$           RELEASE:       Member(TransSet6, Trans_No6),1;
499$          ASSIGN:        #product from d2=#product from d2+1:NEXT(188$);


;
;
;     Model statements for module:  Decide 122
;
188$          BRANCH,        1:
                             If,#product from d2==8,1069$,Yes:
                             Else,1070$,Yes;
1069$         ASSIGN:        Decide 122.NumberOut True=Decide 122.NumberOut True + 1:NEXT(229$);

1070$         ASSIGN:        Decide 122.NumberOut False=Decide 122.NumberOut False + 1:NEXT(501$);

229$          TALLY:         time for pickup to d2,tnow-leave the dock2 queue,1;
500$          ASSIGN:        #product from d2=#product from d2-#product from d2:NEXT(77$);


;
;
;     Model statements for module:  Process 4
;
77$           ASSIGN:        Loading from dock2.NumberIn=Loading from dock2.NumberIn + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP+1;
1100$         STACK,         1:Save:NEXT(1074$);

1074$         QUEUE,         Loading from dock2.Queue;
1073$         SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(1072$);

1072$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1115$);

1115$         ASSIGN:        Loading from dock2.WaitTime=Loading from dock2.WaitTime + Diff.WaitTime;
1079$         TALLY:         Loading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
1081$         TALLY:         Loading from dock2.TotalTimePerEntity,Diff.StartTime,1;
1105$         ASSIGN:        Loading from dock2.VATime=Loading from dock2.VATime + Diff.VATime;
1106$         TALLY:         Loading from dock2.VATimePerEntity,Diff.VATime,1;
1071$         RELEASE:       SELECT(TransSet5,LAST),1;
1120$         STACK,         1:Destroy:NEXT(1119$);

1119$         ASSIGN:        Loading from dock2.NumberOut=Loading from dock2.NumberOut + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP-1:NEXT(220$);

220$          ASSIGN:        #loaded2=#loaded2+1:NEXT(47$);


;
;
;     Model statements for module:  Decide 39
;
47$           BRANCH,        1:
                             If,#loaded2==ordersize,1122$,Yes:
                             Else,1123$,Yes;
1122$         ASSIGN:        Decide 39.NumberOut True=Decide 39.NumberOut True + 1:NEXT(48$);

1123$         ASSIGN:        Decide 39.NumberOut False=Decide 39.NumberOut False + 1:NEXT(49$);


;
;
;     Model statements for module:  Release 14
;
48$           RELEASE:       dock2,1:NEXT(221$);

221$          ASSIGN:        #loaded2=#loaded2-#loaded2;
231$          TALLY:         time in system from d2 for shipment,tnow-shipmentqenter,1;
298$          COUNT:         # of trucks that are in system  more than 60 minutes from d2,(tnow-shipmentqenter)>60;
493$          COUNT:         # of trucks that are in system  more than 45 minutes from d2,(tnow-shipmentqenter)>45;
299$          COUNT:         #of trucks that are from d2,1;
496$          TALLY:         time for loading at d2,tnow-starting time of loading at d2,1:NEXT(49$);


;
;
;     Model statements for module:  Dispose 14
;
49$           ASSIGN:        Dispose 14.NumberOut=Dispose 14.NumberOut + 1;
1124$         DISPOSE:       Yes;

501$          ASSIGN:        #product being loaded from d2=#product being loaded from d2+1:NEXT(502$);


;
;
;     Model statements for module:  Decide 217
;
502$          BRANCH,        1:
                             If,#product being loaded from d2==1,1125$,Yes:
                             Else,1126$,Yes;
1125$         ASSIGN:        Decide 217.NumberOut True=Decide 217.NumberOut True + 1:NEXT(494$);

1126$         ASSIGN:        Decide 217.NumberOut False=Decide 217.NumberOut False + 1:NEXT(503$);


;
;
;     Model statements for module:  Assign 176
;
494$          ASSIGN:        starting time of loading at d2=tnow:NEXT(77$);


;
;
;     Model statements for module:  Decide 218
;
503$          BRANCH,        1:
                             If,#product being loaded from d2==7,1127$,Yes:
                             Else,1128$,Yes;
1127$         ASSIGN:        Decide 218.NumberOut True=Decide 218.NumberOut True + 1:NEXT(504$);

1128$         ASSIGN:        Decide 218.NumberOut False=Decide 218.NumberOut False + 1:NEXT(77$);

504$          ASSIGN:        #product being loaded from d2=#product being loaded from d2-#product being loaded from d2:NEXT(77$);


;
;
;     Model statements for module:  Delay 21
;
543$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(53$);


;
;
;     Model statements for module:  Assign 44
;
65$           ASSIGN:        width10=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance10=23+k*1+width10:NEXT(38$);


;
;
;     Model statements for module:  Decide 19
;
33$           BRANCH,        1:
                             If,( LocationB(k,1) <> 0 )  &&  ( type == LocationB(k,2) ),1129$,Yes:
                             Else,1130$,Yes;
1129$         ASSIGN:        Decide 19.NumberOut True=Decide 19.NumberOut True + 1:NEXT(34$);

1130$         ASSIGN:        Decide 19.NumberOut False=Decide 19.NumberOut False + 1:NEXT(78$);

34$           ASSIGN:        LocationB(k,1)=LocationB(k,1)-1:NEXT(35$);


;
;
;     Model statements for module:  Assign 30
;
35$           ASSIGN:        picked=1:
                             Locationtype=2:NEXT(36$);


;
;
;     Model statements for module:  Decide 21
;
36$           BRANCH,        1:
                             If,LocationB(k,1)==0,1131$,Yes:
                             Else,1132$,Yes;
1131$         ASSIGN:        Decide 21.NumberOut True=Decide 21.NumberOut True + 1:NEXT(37$);

1132$         ASSIGN:        Decide 21.NumberOut False=Decide 21.NumberOut False + 1:NEXT(518$);

37$           ASSIGN:        LocationB(k,2)=0:NEXT(518$);


;
;
;     Model statements for module:  Decide 225
;
518$          BRANCH,        1:
                             If,dock_no==1,1133$,Yes:
                             Else,1134$,Yes;
1133$         ASSIGN:        Decide 225.NumberOut True=Decide 225.NumberOut True + 1:NEXT(519$);

1134$         ASSIGN:        Decide 225.NumberOut False=Decide 225.NumberOut False + 1:NEXT(520$);


;
;
;     Model statements for module:  Assign 191
;
519$          ASSIGN:        width11=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance11=20+k*1+width11:NEXT(38$);


;
;
;     Model statements for module:  Assign 192
;
520$          ASSIGN:        width12=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance12=23+k*1+width12:NEXT(38$);


;
;
;     Model statements for module:  Decide 82
;
78$           BRANCH,        1:
                             If,( LocationC(k,1) <> 0 )  &&  ( type == LocationC(k,2) ),1135$,Yes:
                             Else,1136$,Yes;
1135$         ASSIGN:        Decide 82.NumberOut True=Decide 82.NumberOut True + 1:NEXT(79$);

1136$         ASSIGN:        Decide 82.NumberOut False=Decide 82.NumberOut False + 1:NEXT(153$);

79$           ASSIGN:        LocationC(k,1)=LocationC(k,1)-1:NEXT(80$);


;
;
;     Model statements for module:  Assign 53
;
80$           ASSIGN:        picked=1:
                             Locationtype=3:NEXT(81$);


;
;
;     Model statements for module:  Decide 83
;
81$           BRANCH,        1:
                             If,LocationC(k,1)==0,1137$,Yes:
                             Else,1138$,Yes;
1137$         ASSIGN:        Decide 83.NumberOut True=Decide 83.NumberOut True + 1:NEXT(82$);

1138$         ASSIGN:        Decide 83.NumberOut False=Decide 83.NumberOut False + 1:NEXT(83$);

82$           ASSIGN:        LocationC(k,2)=0:NEXT(83$);


;
;
;     Model statements for module:  Decide 84
;
83$           BRANCH,        1:
                             If,dock_no==1,1139$,Yes:
                             Else,1140$,Yes;
1139$         ASSIGN:        Decide 84.NumberOut True=Decide 84.NumberOut True + 1:NEXT(84$);

1140$         ASSIGN:        Decide 84.NumberOut False=Decide 84.NumberOut False + 1:NEXT(85$);


;
;
;     Model statements for module:  Assign 55
;
84$           ASSIGN:        width13=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance13=13+k*1+width13:NEXT(38$);


;
;
;     Model statements for module:  Assign 56
;
85$           ASSIGN:        width14=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance14=14+k*1+width14:NEXT(38$);


;
;
;     Model statements for module:  Decide 111
;
153$          BRANCH,        1:
                             If,( LocationD(k,1) <> 0 )  &&  ( type == LocationD(k,2) ),1141$,Yes:
                             Else,1142$,Yes;
1141$         ASSIGN:        Decide 111.NumberOut True=Decide 111.NumberOut True + 1:NEXT(154$);

1142$         ASSIGN:        Decide 111.NumberOut False=Decide 111.NumberOut False + 1:NEXT(39$);

154$          ASSIGN:        LocationD(k,1)=LocationD(k,1)-1:NEXT(155$);


;
;
;     Model statements for module:  Assign 77
;
155$          ASSIGN:        picked=1:
                             Locationtype=4:NEXT(156$);


;
;
;     Model statements for module:  Decide 112
;
156$          BRANCH,        1:
                             If,LocationD(k,1)==0,1143$,Yes:
                             Else,1144$,Yes;
1143$         ASSIGN:        Decide 112.NumberOut True=Decide 112.NumberOut True + 1:NEXT(157$);

1144$         ASSIGN:        Decide 112.NumberOut False=Decide 112.NumberOut False + 1:NEXT(521$);

157$          ASSIGN:        LocationD(k,2)=0:NEXT(521$);


;
;
;     Model statements for module:  Decide 226
;
521$          BRANCH,        1:
                             If,dock_no==1,1145$,Yes:
                             Else,1146$,Yes;
1145$         ASSIGN:        Decide 226.NumberOut True=Decide 226.NumberOut True + 1:NEXT(522$);

1146$         ASSIGN:        Decide 226.NumberOut False=Decide 226.NumberOut False + 1:NEXT(523$);


;
;
;     Model statements for module:  Assign 193
;
522$          ASSIGN:        width15=
                             (LocationD(k,1)==7)*0+(LocationD(k,1)==6)*1+(LocationD(k,1)==5)*2+(LocationD(k,1)==4)*3+(LocationD(k,1)==3)*4+(LocationD(k,1)==2)*5+(LocationD(k,1)==1)*6+(LocationD(k,1)==0)*7:
                             distance15=13+k*1+width15:NEXT(38$);


;
;
;     Model statements for module:  Assign 194
;
523$          ASSIGN:        width16=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance16=14+k*1+width16:NEXT(38$);


;
;
;     Model statements for module:  Assign 32
;
39$           ASSIGN:        k=k+1:NEXT(534$);


;
;
;     Model statements for module:  Decide 231
;
534$          BRANCH,        1:
                             If,k<=231,1147$,Yes:
                             Else,1148$,Yes;
1147$         ASSIGN:        Decide 231.NumberOut True=Decide 231.NumberOut True + 1:NEXT(38$);

1148$         ASSIGN:        Decide 231.NumberOut False=Decide 231.NumberOut False + 1:NEXT(539$);


;
;
;     Model statements for module:  Assign 197
;
539$          ASSIGN:        departure from stock exceeded=1:NEXT(535$);


;
;
;     Model statements for module:  Decide 232
;
535$          BRANCH,        1:
                             If,type==1,536$,Yes:
                             If,type==2,537$,Yes:
                             Else,538$,Yes;
538$          ASSIGN:        stock3=stock3-1:NEXT(42$);

536$          ASSIGN:        stock1=stock1-1:NEXT(42$);

537$          ASSIGN:        stock2=stock2-1:NEXT(42$);

301$          TALLY:         time in shipmentq at d2,tnow-shipmentqenter,1:NEXT(67$);


;
;
;     Model statements for module:  Assign 48
;
67$           ASSIGN:        dock_no=2:
                             leave the dock2 queue=tnow:NEXT(26$);


;
;
;     Model statements for module:  Record 32
;
160$          COUNT:         #runaway,1:NEXT(159$);


;
;
;     Model statements for module:  Dispose 21
;
159$          ASSIGN:        Dispose 21.NumberOut=Dispose 21.NumberOut + 1;
1151$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Decide 118
;
168$          BRANCH,        1:
                             If,product1stock>=safety stock,1152$,Yes:
                             Else,1153$,Yes;
1152$         ASSIGN:        Decide 118.NumberOut True=Decide 118.NumberOut True + 1:NEXT(222$);

1153$         ASSIGN:        Decide 118.NumberOut False=Decide 118.NumberOut False + 1:NEXT(160$);

222$          COUNT:         dispatchatruck,1:NEXT(24$);


;
;
;     Model statements for module:  Decide 119
;
169$          BRANCH,        1:
                             If,product2stock>=safety stock,1154$,Yes:
                             Else,1155$,Yes;
1154$         ASSIGN:        Decide 119.NumberOut True=Decide 119.NumberOut True + 1:NEXT(223$);

1155$         ASSIGN:        Decide 119.NumberOut False=Decide 119.NumberOut False + 1:NEXT(160$);

223$          COUNT:         dispatchbtruck,1:NEXT(24$);


;
;
;     Model statements for module:  Dispose 20
;
108$          ASSIGN:        Dispose 20.NumberOut=Dispose 20.NumberOut + 1;
1156$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 73
;
134$          ASSIGN:        departureb2# c1=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,98)
                             :NEXT(138$);


;
;
;     Model statements for module:  Decide 106
;
138$          BRANCH,        1:
                             If,departureb2# c1==0,108$,Yes:
                             If,departureb2# c1==1,139$,Yes:
                             Else,140$,Yes;

;
;
;     Model statements for module:  Separate 10
;
140$          DUPLICATE,     100 - 50:
                             departureb2# c1-1,1161$,50:NEXT(1160$);

1160$         ASSIGN:        Separate 10.NumberOut Orig=Separate 10.NumberOut Orig + 1:NEXT(139$);

1161$         ASSIGN:        Separate 10.NumberOut Dup=Separate 10.NumberOut Dup + 1:NEXT(139$);


;
;
;     Model statements for module:  Process 15
;
139$          ASSIGN:        Process 15.NumberIn=Process 15.NumberIn + 1:
                             Process 15.WIP=Process 15.WIP+1;
1191$         STACK,         1:Save:NEXT(1165$);

1165$         QUEUE,         Process 15.Queue;
1164$         SEIZE,         2,VA:
                             Resource 9,1:NEXT(1163$);

1163$         DELAY:         HoursToBaseTime(expo(14/departureb2# c1,34)),,VA:NEXT(1206$);

1206$         ASSIGN:        Process 15.WaitTime=Process 15.WaitTime + Diff.WaitTime;
1170$         TALLY:         Process 15.WaitTimePerEntity,Diff.WaitTime,1;
1172$         TALLY:         Process 15.TotalTimePerEntity,Diff.StartTime,1;
1196$         ASSIGN:        Process 15.VATime=Process 15.VATime + Diff.VATime;
1197$         TALLY:         Process 15.VATimePerEntity,Diff.VATime,1;
1162$         RELEASE:       Resource 9,1;
1211$         STACK,         1:Destroy:NEXT(1210$);

1210$         ASSIGN:        Process 15.NumberOut=Process 15.NumberOut + 1:
                             Process 15.WIP=Process 15.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Create 7
;

1213$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c1:MinutesToBaseTime(1440):NEXT(1214$);

1214$         ASSIGN:        Create for shipment c shift1 c1.NumberOut=Create for shipment c shift1 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Decide 107
;
141$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1217$,Yes:
                             Else,1218$,Yes;
1217$         ASSIGN:        Decide 107.NumberOut True=Decide 107.NumberOut True + 1:NEXT(142$);

1218$         ASSIGN:        Decide 107.NumberOut False=Decide 107.NumberOut False + 1:NEXT(143$);


;
;
;     Model statements for module:  Assign 74
;
142$          ASSIGN:        departurec1# c1=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,99):NEXT(144$);


;
;
;     Model statements for module:  Decide 108
;
144$          BRANCH,        1:
                             If,departurec1# c1==0,108$,Yes:
                             If,departurec1# c1==1,145$,Yes:
                             Else,146$,Yes;

;
;
;     Model statements for module:  Separate 11
;
146$          DUPLICATE,     100 - 50:
                             departurec1# c1-1,1223$,50:NEXT(1222$);

1222$         ASSIGN:        Separate 11.NumberOut Orig=Separate 11.NumberOut Orig + 1:NEXT(145$);

1223$         ASSIGN:        Separate 11.NumberOut Dup=Separate 11.NumberOut Dup + 1:NEXT(145$);


;
;
;     Model statements for module:  Process 16
;
145$          ASSIGN:        Process 16.NumberIn=Process 16.NumberIn + 1:
                             Process 16.WIP=Process 16.WIP+1;
1253$         STACK,         1:Save:NEXT(1227$);

1227$         QUEUE,         Process 16.Queue;
1226$         SEIZE,         2,VA:
                             Resource 10,1:NEXT(1225$);

1225$         DELAY:         HoursToBaseTime(expo(10/departurec1# c1,35)),,VA:NEXT(1268$);

1268$         ASSIGN:        Process 16.WaitTime=Process 16.WaitTime + Diff.WaitTime;
1232$         TALLY:         Process 16.WaitTimePerEntity,Diff.WaitTime,1;
1234$         TALLY:         Process 16.TotalTimePerEntity,Diff.StartTime,1;
1258$         ASSIGN:        Process 16.VATime=Process 16.VATime + Diff.VATime;
1259$         TALLY:         Process 16.VATimePerEntity,Diff.VATime,1;
1224$         RELEASE:       Resource 10,1;
1273$         STACK,         1:Destroy:NEXT(1272$);

1272$         ASSIGN:        Process 16.NumberOut=Process 16.NumberOut + 1:
                             Process 16.WIP=Process 16.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Assign 61
;
91$           ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 75
;
143$          ASSIGN:        departurec2# c1=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,100):NEXT(147$);


;
;
;     Model statements for module:  Decide 109
;
147$          BRANCH,        1:
                             If,departurec2# c1==0,108$,Yes:
                             If,departurec2# c1==1,148$,Yes:
                             Else,149$,Yes;

;
;
;     Model statements for module:  Separate 12
;
149$          DUPLICATE,     100 - 50:
                             departurec2# c1-1,1279$,50:NEXT(1278$);

1278$         ASSIGN:        Separate 12.NumberOut Orig=Separate 12.NumberOut Orig + 1:NEXT(148$);

1279$         ASSIGN:        Separate 12.NumberOut Dup=Separate 12.NumberOut Dup + 1:NEXT(148$);


;
;
;     Model statements for module:  Process 17
;
148$          ASSIGN:        Process 17.NumberIn=Process 17.NumberIn + 1:
                             Process 17.WIP=Process 17.WIP+1;
1309$         STACK,         1:Save:NEXT(1283$);

1283$         QUEUE,         Process 17.Queue;
1282$         SEIZE,         2,VA:
                             Resource 11,1:NEXT(1281$);

1281$         DELAY:         HoursToBaseTime(expo(14/departurec2# c1,36)),,VA:NEXT(1324$);

1324$         ASSIGN:        Process 17.WaitTime=Process 17.WaitTime + Diff.WaitTime;
1288$         TALLY:         Process 17.WaitTimePerEntity,Diff.WaitTime,1;
1290$         TALLY:         Process 17.TotalTimePerEntity,Diff.StartTime,1;
1314$         ASSIGN:        Process 17.VATime=Process 17.VATime + Diff.VATime;
1315$         TALLY:         Process 17.VATimePerEntity,Diff.VATime,1;
1280$         RELEASE:       Resource 11,1;
1329$         STACK,         1:Destroy:NEXT(1328$);

1328$         ASSIGN:        Process 17.NumberOut=Process 17.NumberOut + 1:
                             Process 17.WIP=Process 17.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Create 9
;

1331$         CREATE,        1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(24):NEXT(1332$);

1332$         ASSIGN:        Create 9.NumberOut=Create 9.NumberOut + 1:NEXT(98$);


;
;
;     Model statements for module:  Assign 64
;
98$           ASSIGN:        day=day+1:NEXT(99$);


;
;
;     Model statements for module:  Dispose 17
;
99$           ASSIGN:        Dispose 17.NumberOut=Dispose 17.NumberOut + 1;
1335$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Create 11
;

1336$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c1:MinutesToBaseTime(1440):NEXT(1337$);

1337$         ASSIGN:        Create for receiving a shift2 c1.NumberOut=Create for receiving a shift2 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Decide 93
;
100$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1340$,Yes:
                             Else,1341$,Yes;
1340$         ASSIGN:        Decide 93.NumberOut True=Decide 93.NumberOut True + 1:NEXT(92$);

1341$         ASSIGN:        Decide 93.NumberOut False=Decide 93.NumberOut False + 1:NEXT(101$);


;
;
;     Model statements for module:  Assign 62
;
92$           ASSIGN:        receipta1# c1=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,65)
                             :NEXT(94$);


;
;
;     Model statements for module:  Decide 92
;
94$           BRANCH,        1:
                             If,receipta1# c1==0,95$,Yes:
                             If,receipta1# c1==1,96$,Yes:
                             Else,97$,Yes;

;
;
;     Model statements for module:  Separate 1
;
97$           DUPLICATE,     100 - 50:
                             receipta1# c1-1,1346$,50:NEXT(1345$);

1345$         ASSIGN:        Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1:NEXT(96$);

1346$         ASSIGN:        Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1:NEXT(96$);


;
;
;     Model statements for module:  Process 6
;
96$           ASSIGN:        Process 6.NumberIn=Process 6.NumberIn + 1:
                             Process 6.WIP=Process 6.WIP+1;
1376$         STACK,         1:Save:NEXT(1350$);

1350$         QUEUE,         Process 6.Queue;
1349$         SEIZE,         2,VA:
                             Resource 1,1:NEXT(1348$);

1348$         DELAY:         HoursToBaseTime(expo(10/receipta1# c1,1)),,VA:NEXT(1391$);

1391$         ASSIGN:        Process 6.WaitTime=Process 6.WaitTime + Diff.WaitTime;
1355$         TALLY:         Process 6.WaitTimePerEntity,Diff.WaitTime,1;
1357$         TALLY:         Process 6.TotalTimePerEntity,Diff.StartTime,1;
1381$         ASSIGN:        Process 6.VATime=Process 6.VATime + Diff.VATime;
1382$         TALLY:         Process 6.VATimePerEntity,Diff.VATime,1;
1347$         RELEASE:       Resource 1,1;
1396$         STACK,         1:Destroy:NEXT(1395$);

1395$         ASSIGN:        Process 6.NumberOut=Process 6.NumberOut + 1:
                             Process 6.WIP=Process 6.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Assign 1
;
0$            ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 65
;
101$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,66)
                             :NEXT(102$);


;
;
;     Model statements for module:  Decide 94
;
102$          BRANCH,        1:
                             If,receipta2# c1==0,95$,Yes:
                             If,receipta2# c1==1,113$,Yes:
                             Else,103$,Yes;

;
;
;     Model statements for module:  Separate 2
;
103$          DUPLICATE,     100 - 50:
                             receipta2# c1-1,1402$,50:NEXT(1401$);

1401$         ASSIGN:        Separate 2.NumberOut Orig=Separate 2.NumberOut Orig + 1:NEXT(113$);

1402$         ASSIGN:        Separate 2.NumberOut Dup=Separate 2.NumberOut Dup + 1:NEXT(113$);


;
;
;     Model statements for module:  Process 8
;
113$          ASSIGN:        Process 8.NumberIn=Process 8.NumberIn + 1:
                             Process 8.WIP=Process 8.WIP+1;
1432$         STACK,         1:Save:NEXT(1406$);

1406$         QUEUE,         Process 8.Queue;
1405$         SEIZE,         2,VA:
                             Resource 2,1:NEXT(1404$);

1404$         DELAY:         HoursToBaseTime(expo(14/receipta2# c1,2)),,VA:NEXT(1447$);

1447$         ASSIGN:        Process 8.WaitTime=Process 8.WaitTime + Diff.WaitTime;
1411$         TALLY:         Process 8.WaitTimePerEntity,Diff.WaitTime,1;
1413$         TALLY:         Process 8.TotalTimePerEntity,Diff.StartTime,1;
1437$         ASSIGN:        Process 8.VATime=Process 8.VATime + Diff.VATime;
1438$         TALLY:         Process 8.VATimePerEntity,Diff.VATime,1;
1403$         RELEASE:       Resource 2,1;
1452$         STACK,         1:Destroy:NEXT(1451$);

1451$         ASSIGN:        Process 8.NumberOut=Process 8.NumberOut + 1:
                             Process 8.WIP=Process 8.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Create 15
;

1454$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c1:MinutesToBaseTime(1440):NEXT(1455$);

1455$         ASSIGN:        Create for shipmenta shift2 c1.NumberOut=Create for shipmenta shift2 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Decide 95
;
105$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1458$,Yes:
                             Else,1459$,Yes;
1458$         ASSIGN:        Decide 95.NumberOut True=Decide 95.NumberOut True + 1:NEXT(104$);

1459$         ASSIGN:        Decide 95.NumberOut False=Decide 95.NumberOut False + 1:NEXT(106$);


;
;
;     Model statements for module:  Assign 66
;
104$          ASSIGN:        departurea1# c1=disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,95)
                             :NEXT(107$);


;
;
;     Model statements for module:  Decide 96
;
107$          BRANCH,        1:
                             If,departurea1# c1==0,108$,Yes:
                             If,departurea1# c1==1,109$,Yes:
                             Else,110$,Yes;

;
;
;     Model statements for module:  Separate 3
;
110$          DUPLICATE,     100 - 50:
                             departurea1# c1-1,1464$,50:NEXT(1463$);

1463$         ASSIGN:        Separate 3.NumberOut Orig=Separate 3.NumberOut Orig + 1:NEXT(109$);

1464$         ASSIGN:        Separate 3.NumberOut Dup=Separate 3.NumberOut Dup + 1:NEXT(109$);


;
;
;     Model statements for module:  Process 7
;
109$          ASSIGN:        Process 7.NumberIn=Process 7.NumberIn + 1:
                             Process 7.WIP=Process 7.WIP+1;
1494$         STACK,         1:Save:NEXT(1468$);

1468$         QUEUE,         Process 7.Queue;
1467$         SEIZE,         2,VA:
                             Resource 3,1:NEXT(1466$);

1466$         DELAY:         HoursToBaseTime(expo(10/departurea1# c1,31)),,VA:NEXT(1509$);

1509$         ASSIGN:        Process 7.WaitTime=Process 7.WaitTime + Diff.WaitTime;
1473$         TALLY:         Process 7.WaitTimePerEntity,Diff.WaitTime,1;
1475$         TALLY:         Process 7.TotalTimePerEntity,Diff.StartTime,1;
1499$         ASSIGN:        Process 7.VATime=Process 7.VATime + Diff.VATime;
1500$         TALLY:         Process 7.VATimePerEntity,Diff.VATime,1;
1465$         RELEASE:       Resource 3,1;
1514$         STACK,         1:Destroy:NEXT(1513$);

1513$         ASSIGN:        Process 7.NumberOut=Process 7.NumberOut + 1:
                             Process 7.WIP=Process 7.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Assign 59
;
89$           ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 67
;
106$          ASSIGN:        departurea2# c1=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,96):NEXT(111$);


;
;
;     Model statements for module:  Decide 97
;
111$          BRANCH,        1:
                             If,departurea2# c1==0,108$,Yes:
                             If,departurea2# c1==1,114$,Yes:
                             Else,112$,Yes;

;
;
;     Model statements for module:  Separate 4
;
112$          DUPLICATE,     100 - 50:
                             departurea2# c1-1,1520$,50:NEXT(1519$);

1519$         ASSIGN:        Separate 4.NumberOut Orig=Separate 4.NumberOut Orig + 1:NEXT(114$);

1520$         ASSIGN:        Separate 4.NumberOut Dup=Separate 4.NumberOut Dup + 1:NEXT(114$);


;
;
;     Model statements for module:  Process 9
;
114$          ASSIGN:        Process 9.NumberIn=Process 9.NumberIn + 1:
                             Process 9.WIP=Process 9.WIP+1;
1550$         STACK,         1:Save:NEXT(1524$);

1524$         QUEUE,         Process 9.Queue;
1523$         SEIZE,         2,VA:
                             Resource 4,1:NEXT(1522$);

1522$         DELAY:         HoursToBaseTime(expo(14/departurea2# c1,32)),,VA:NEXT(1565$);

1565$         ASSIGN:        Process 9.WaitTime=Process 9.WaitTime + Diff.WaitTime;
1529$         TALLY:         Process 9.WaitTimePerEntity,Diff.WaitTime,1;
1531$         TALLY:         Process 9.TotalTimePerEntity,Diff.StartTime,1;
1555$         ASSIGN:        Process 9.VATime=Process 9.VATime + Diff.VATime;
1556$         TALLY:         Process 9.VATimePerEntity,Diff.VATime,1;
1521$         RELEASE:       Resource 4,1;
1570$         STACK,         1:Destroy:NEXT(1569$);

1569$         ASSIGN:        Process 9.NumberOut=Process 9.NumberOut + 1:
                             Process 9.WIP=Process 9.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Create 16
;

1572$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c1:MinutesToBaseTime(1440):NEXT(1573$);

1573$         ASSIGN:        Create for receiving b shift2 c1.NumberOut=Create for receiving b shift2 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Create 17
;

1576$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c1:MinutesToBaseTime(1440):NEXT(1577$);

1577$         ASSIGN:        Create for receiving c shift2 c1.NumberOut=Create for receiving c shift2 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Create 19
;

1580$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c1:MinutesToBaseTime(1440):NEXT(1581$);

1581$         ASSIGN:        Create for shipment b shift2 c1.NumberOut=Create for shipment b shift2 c1.NumberOut + 1:NEXT(132$);


176$          CREATE,        1,TFIN:,1:NEXT(177$);

177$          WRITE,         rqueueoutput:
                             
                             tavg(time in receiptq at d1),tavg(time in receiptq at d2),davg(statistic 1),davg(statistic 2),davg(statistic 3),dmax(statistic 1), dmax(statistic 2),dmax(statistic 3),davg(statistic 4),davg(statistic 5),davg(statistic 6),dmax(statistic 4),dmax(statistic 5),dmax(statistic 6),davg(statistic 7),dmax(statistic 7),davg(statistic 8),dmax(statistic 8);
178$          DISPOSE:       No;


185$          CREATE,        1,TFIN:,1:NEXT(186$);

186$          WRITE,         rtimeinsystem:
                             
                             tavg(time in system from d1), tavg(time in system from d2),tavg(time for putaway from d1),tavg(time for putaway from d2);
187$          DISPOSE:       No;


190$          CREATE,        1,TFIN::NEXT(191$);

191$          WRITE,         utilizationf1:
                             FSTAND(forklift1,1),FSTAND(forklift1,2),FSTAND(forklift1,4);
192$          DISPOSE:       No;


193$          CREATE,        1,TFIN::NEXT(194$);

194$          WRITE,         utilizationf2:
                             FSTAND(forklift2,1),FSTAND(forklift2,2),FSTAND(forklift2,4);
195$          DISPOSE:       No;


196$          CREATE,        1,TFIN::NEXT(197$);

197$          WRITE,         utilizationf3:
                             FSTAND(forklift3,1),FSTAND(forklift3,2),FSTAND(forklift3,4);
198$          DISPOSE:       No;


199$          CREATE,        1,TFIN::NEXT(200$);

200$          WRITE,         utilizationf4:
                             FSTAND(forklift4,1),FSTAND(forklift4,2),FSTAND(forklift4,4);
201$          DISPOSE:       No;


202$          CREATE,        1,TFIN::NEXT(203$);

203$          WRITE,         utilizationf5:
                             FSTAND(forklift5,1),FSTAND(forklift5,2),FSTAND(forklift5,4);
204$          DISPOSE:       No;


205$          CREATE,        1,TFIN::NEXT(206$);

206$          WRITE,         utilizationf6:
                             FSTAND(forklift6,1),FSTAND(forklift6,2),FSTAND(forklift6,4);
207$          DISPOSE:       No;


208$          CREATE,        1,TFIN::NEXT(209$);

209$          WRITE,         utilizationd1:
                             FSTAND(dock 1,1),FSTAND(dock 1,2),FSTAND(dock 1,4);
210$          DISPOSE:       No;


211$          CREATE,        1,TFIN::NEXT(212$);

212$          WRITE,         utilizationd2:
                             FSTAND(dock 2,1),FSTAND(dock 2,2),FSTAND(dock 2,4);
213$          DISPOSE:       No;


225$          CREATE,        1,TFIN:,1:NEXT(226$);

226$          WRITE,         squeueoutput:
                             
                             tavg(time in shipmentq at d1),tavg(time in shipmentq at d2),nc(receiptatruck),nc(receiptbtruck),nc(receiptctruck),nc(dispatchatruck),nc(dispatchbtruck),nc(dispatchctruck),nc(#runaway),tavg(time for pickup to d1),tavg(time for pickup to d2),tavg(time for loading at d1),tavg(time for loading at d2);
227$          DISPOSE:       No;


232$          CREATE,        1,TFIN:,1:NEXT(233$);

233$          WRITE,         stimeinsystem:
                             
                             tavg(time in system from d1 for shipment),nc(# of trucks that are in system  more than 60 minutes from d1),nc(#of trucks that are from d1),tavg(time in system from d2 for shipment),nc(# of trucks that are in system  more than 60 minutes from d2),nc(#of trucks that are from d2),nc(# of trucks that are in system  more than 45 minutes from d1),nc(# of trucks that are in system  more than 45 minutes from d2);
234$          DISPOSE:       No;


;
;
;     Model statements for module:  Create 24
;

1584$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c2:MinutesToBaseTime(1440):NEXT(1585$);

1585$         ASSIGN:        Create for receiving b shift1 c2.NumberOut=Create for receiving b shift1 c2.NumberOut + 1
                             :NEXT(248$);


;
;
;     Model statements for module:  Decide 127
;
248$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1588$,Yes:
                             Else,1589$,Yes;
1588$         ASSIGN:        Decide 127.NumberOut True=Decide 127.NumberOut True + 1:NEXT(545$);

1589$         ASSIGN:        Decide 127.NumberOut False=Decide 127.NumberOut False + 1:NEXT(249$);


;
;
;     Model statements for module:  Assign 199
;
545$          ASSIGN:        receiptb1# c2=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,73)
                             :NEXT(250$);


;
;
;     Model statements for module:  Decide 128
;
250$          BRANCH,        1:
                             If,receiptb1# c2==0,240$,Yes:
                             If,receiptb1# c2==1,251$,Yes:
                             Else,252$,Yes;

;
;
;     Model statements for module:  Separate 15
;
252$          DUPLICATE,     100 - 50:
                             receiptb1# c2-1,1594$,50:NEXT(1593$);

1593$         ASSIGN:        Separate 15.NumberOut Orig=Separate 15.NumberOut Orig + 1:NEXT(251$);

1594$         ASSIGN:        Separate 15.NumberOut Dup=Separate 15.NumberOut Dup + 1:NEXT(251$);


;
;
;     Model statements for module:  Process 20
;
251$          ASSIGN:        Process 20.NumberIn=Process 20.NumberIn + 1:
                             Process 20.WIP=Process 20.WIP+1;
1624$         STACK,         1:Save:NEXT(1598$);

1598$         QUEUE,         Process 20.Queue;
1597$         SEIZE,         2,VA:
                             Resource 14,1:NEXT(1596$);

1596$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c2,9)),,VA:NEXT(1639$);

1639$         ASSIGN:        Process 20.WaitTime=Process 20.WaitTime + Diff.WaitTime;
1603$         TALLY:         Process 20.WaitTimePerEntity,Diff.WaitTime,1;
1605$         TALLY:         Process 20.TotalTimePerEntity,Diff.StartTime,1;
1629$         ASSIGN:        Process 20.VATime=Process 20.VATime + Diff.VATime;
1630$         TALLY:         Process 20.VATimePerEntity,Diff.VATime,1;
1595$         RELEASE:       Resource 14,1;
1644$         STACK,         1:Destroy:NEXT(1643$);

1643$         ASSIGN:        Process 20.NumberOut=Process 20.NumberOut + 1:
                             Process 20.WIP=Process 20.WIP-1:NEXT(236$);


;
;
;     Model statements for module:  Assign 83
;
236$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 22
;
240$          ASSIGN:        Dispose 22.NumberOut=Dispose 22.NumberOut + 1;
1646$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 88
;
249$          ASSIGN:        receiptb2# c2=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,74)
                             :NEXT(253$);


;
;
;     Model statements for module:  Decide 129
;
253$          BRANCH,        1:
                             If,receiptb2# c2==0,240$,Yes:
                             If,receiptb2# c2==1,254$,Yes:
                             Else,255$,Yes;

;
;
;     Model statements for module:  Separate 16
;
255$          DUPLICATE,     100 - 50:
                             receiptb2# c2-1,1651$,50:NEXT(1650$);

1650$         ASSIGN:        Separate 16.NumberOut Orig=Separate 16.NumberOut Orig + 1:NEXT(254$);

1651$         ASSIGN:        Separate 16.NumberOut Dup=Separate 16.NumberOut Dup + 1:NEXT(254$);


;
;
;     Model statements for module:  Process 21
;
254$          ASSIGN:        Process 21.NumberIn=Process 21.NumberIn + 1:
                             Process 21.WIP=Process 21.WIP+1;
1681$         STACK,         1:Save:NEXT(1655$);

1655$         QUEUE,         Process 21.Queue;
1654$         SEIZE,         2,VA:
                             Resource 15,1:NEXT(1653$);

1653$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c2,10)),,VA:NEXT(1696$);

1696$         ASSIGN:        Process 21.WaitTime=Process 21.WaitTime + Diff.WaitTime;
1660$         TALLY:         Process 21.WaitTimePerEntity,Diff.WaitTime,1;
1662$         TALLY:         Process 21.TotalTimePerEntity,Diff.StartTime,1;
1686$         ASSIGN:        Process 21.VATime=Process 21.VATime + Diff.VATime;
1687$         TALLY:         Process 21.VATimePerEntity,Diff.VATime,1;
1652$         RELEASE:       Resource 15,1;
1701$         STACK,         1:Destroy:NEXT(1700$);

1700$         ASSIGN:        Process 21.NumberOut=Process 21.NumberOut + 1:
                             Process 21.WIP=Process 21.WIP-1:NEXT(236$);


;
;
;     Model statements for module:  Create 25
;

1703$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c2:MinutesToBaseTime(1440):NEXT(1704$);

1704$         ASSIGN:        Create for receiving c shift1 c2.NumberOut=Create for receiving c shift1 c2.NumberOut + 1
                             :NEXT(256$);


;
;
;     Model statements for module:  Decide 130
;
256$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1707$,Yes:
                             Else,1708$,Yes;
1707$         ASSIGN:        Decide 130.NumberOut True=Decide 130.NumberOut True + 1:NEXT(257$);

1708$         ASSIGN:        Decide 130.NumberOut False=Decide 130.NumberOut False + 1:NEXT(258$);


;
;
;     Model statements for module:  Assign 89
;
257$          ASSIGN:        receiptc1# c2=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,75)
                             :NEXT(259$);


;
;
;     Model statements for module:  Decide 131
;
259$          BRANCH,        1:
                             If,receiptc1# c2==0,240$,Yes:
                             If,receiptc1# c2==1,260$,Yes:
                             Else,261$,Yes;

;
;
;     Model statements for module:  Separate 17
;
261$          DUPLICATE,     100 - 50:
                             receiptc1# c2-1,1713$,50:NEXT(1712$);

1712$         ASSIGN:        Separate 17.NumberOut Orig=Separate 17.NumberOut Orig + 1:NEXT(260$);

1713$         ASSIGN:        Separate 17.NumberOut Dup=Separate 17.NumberOut Dup + 1:NEXT(260$);


;
;
;     Model statements for module:  Process 22
;
260$          ASSIGN:        Process 22.NumberIn=Process 22.NumberIn + 1:
                             Process 22.WIP=Process 22.WIP+1;
1743$         STACK,         1:Save:NEXT(1717$);

1717$         QUEUE,         Process 22.Queue;
1716$         SEIZE,         2,VA:
                             Resource 16,1:NEXT(1715$);

1715$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c2,11)),,VA:NEXT(1758$);

1758$         ASSIGN:        Process 22.WaitTime=Process 22.WaitTime + Diff.WaitTime;
1722$         TALLY:         Process 22.WaitTimePerEntity,Diff.WaitTime,1;
1724$         TALLY:         Process 22.TotalTimePerEntity,Diff.StartTime,1;
1748$         ASSIGN:        Process 22.VATime=Process 22.VATime + Diff.VATime;
1749$         TALLY:         Process 22.VATimePerEntity,Diff.VATime,1;
1714$         RELEASE:       Resource 16,1;
1763$         STACK,         1:Destroy:NEXT(1762$);

1762$         ASSIGN:        Process 22.NumberOut=Process 22.NumberOut + 1:
                             Process 22.WIP=Process 22.WIP-1:NEXT(237$);


;
;
;     Model statements for module:  Assign 84
;
237$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 90
;
258$          ASSIGN:        receiptc2# c2=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,76)
                             :NEXT(262$);


;
;
;     Model statements for module:  Decide 132
;
262$          BRANCH,        1:
                             If,receiptc2# c2==0,240$,Yes:
                             If,receiptc2# c2==1,263$,Yes:
                             Else,264$,Yes;

;
;
;     Model statements for module:  Separate 18
;
264$          DUPLICATE,     100 - 50:
                             receiptc2# c2-1,1769$,50:NEXT(1768$);

1768$         ASSIGN:        Separate 18.NumberOut Orig=Separate 18.NumberOut Orig + 1:NEXT(263$);

1769$         ASSIGN:        Separate 18.NumberOut Dup=Separate 18.NumberOut Dup + 1:NEXT(263$);


;
;
;     Model statements for module:  Process 23
;
263$          ASSIGN:        Process 23.NumberIn=Process 23.NumberIn + 1:
                             Process 23.WIP=Process 23.WIP+1;
1799$         STACK,         1:Save:NEXT(1773$);

1773$         QUEUE,         Process 23.Queue;
1772$         SEIZE,         2,VA:
                             Resource 17,1:NEXT(1771$);

1771$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c2,12)),,VA:NEXT(1814$);

1814$         ASSIGN:        Process 23.WaitTime=Process 23.WaitTime + Diff.WaitTime;
1778$         TALLY:         Process 23.WaitTimePerEntity,Diff.WaitTime,1;
1780$         TALLY:         Process 23.TotalTimePerEntity,Diff.StartTime,1;
1804$         ASSIGN:        Process 23.VATime=Process 23.VATime + Diff.VATime;
1805$         TALLY:         Process 23.VATimePerEntity,Diff.VATime,1;
1770$         RELEASE:       Resource 17,1;
1819$         STACK,         1:Destroy:NEXT(1818$);

1818$         ASSIGN:        Process 23.NumberOut=Process 23.NumberOut + 1:
                             Process 23.WIP=Process 23.WIP-1:NEXT(237$);


;
;
;     Model statements for module:  Create 27
;

1821$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c2:MinutesToBaseTime(1440):NEXT(1822$);

1822$         ASSIGN:        Create for receiving a shift2 c2.NumberOut=Create for receiving a shift2 c2.NumberOut + 1
                             :NEXT(243$);


;
;
;     Model statements for module:  Decide 125
;
243$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1825$,Yes:
                             Else,1826$,Yes;
1825$         ASSIGN:        Decide 125.NumberOut True=Decide 125.NumberOut True + 1:NEXT(238$);

1826$         ASSIGN:        Decide 125.NumberOut False=Decide 125.NumberOut False + 1:NEXT(244$);


;
;
;     Model statements for module:  Assign 85
;
238$          ASSIGN:        receipta1# c2=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,71)
                             :NEXT(239$);


;
;
;     Model statements for module:  Decide 124
;
239$          BRANCH,        1:
                             If,receipta1# c2==0,240$,Yes:
                             If,receipta1# c2==1,241$,Yes:
                             Else,242$,Yes;

;
;
;     Model statements for module:  Separate 13
;
242$          DUPLICATE,     100 - 50:
                             receipta1# c2-1,1831$,50:NEXT(1830$);

1830$         ASSIGN:        Separate 13.NumberOut Orig=Separate 13.NumberOut Orig + 1:NEXT(241$);

1831$         ASSIGN:        Separate 13.NumberOut Dup=Separate 13.NumberOut Dup + 1:NEXT(241$);


;
;
;     Model statements for module:  Process 18
;
241$          ASSIGN:        Process 18.NumberIn=Process 18.NumberIn + 1:
                             Process 18.WIP=Process 18.WIP+1;
1861$         STACK,         1:Save:NEXT(1835$);

1835$         QUEUE,         Process 18.Queue;
1834$         SEIZE,         2,VA:
                             Resource 12,1:NEXT(1833$);

1833$         DELAY:         HoursToBaseTime(expo(10/receipta1# c2,7)),,VA:NEXT(1876$);

1876$         ASSIGN:        Process 18.WaitTime=Process 18.WaitTime + Diff.WaitTime;
1840$         TALLY:         Process 18.WaitTimePerEntity,Diff.WaitTime,1;
1842$         TALLY:         Process 18.TotalTimePerEntity,Diff.StartTime,1;
1866$         ASSIGN:        Process 18.VATime=Process 18.VATime + Diff.VATime;
1867$         TALLY:         Process 18.VATimePerEntity,Diff.VATime,1;
1832$         RELEASE:       Resource 12,1;
1881$         STACK,         1:Destroy:NEXT(1880$);

1880$         ASSIGN:        Process 18.NumberOut=Process 18.NumberOut + 1:
                             Process 18.WIP=Process 18.WIP-1:NEXT(235$);


;
;
;     Model statements for module:  Assign 82
;
235$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 86
;
244$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,72)
                             :NEXT(245$);


;
;
;     Model statements for module:  Decide 126
;
245$          BRANCH,        1:
                             If,receipta2# c2==0,240$,Yes:
                             If,receipta2# c2==1,247$,Yes:
                             Else,246$,Yes;

;
;
;     Model statements for module:  Separate 14
;
246$          DUPLICATE,     100 - 50:
                             receipta2# c2-1,1887$,50:NEXT(1886$);

1886$         ASSIGN:        Separate 14.NumberOut Orig=Separate 14.NumberOut Orig + 1:NEXT(247$);

1887$         ASSIGN:        Separate 14.NumberOut Dup=Separate 14.NumberOut Dup + 1:NEXT(247$);


;
;
;     Model statements for module:  Process 19
;
247$          ASSIGN:        Process 19.NumberIn=Process 19.NumberIn + 1:
                             Process 19.WIP=Process 19.WIP+1;
1917$         STACK,         1:Save:NEXT(1891$);

1891$         QUEUE,         Process 19.Queue;
1890$         SEIZE,         2,VA:
                             Resource 13,1:NEXT(1889$);

1889$         DELAY:         HoursToBaseTime(expo(14/receipta2# c2,8)),,VA:NEXT(1932$);

1932$         ASSIGN:        Process 19.WaitTime=Process 19.WaitTime + Diff.WaitTime;
1896$         TALLY:         Process 19.WaitTimePerEntity,Diff.WaitTime,1;
1898$         TALLY:         Process 19.TotalTimePerEntity,Diff.StartTime,1;
1922$         ASSIGN:        Process 19.VATime=Process 19.VATime + Diff.VATime;
1923$         TALLY:         Process 19.VATimePerEntity,Diff.VATime,1;
1888$         RELEASE:       Resource 13,1;
1937$         STACK,         1:Destroy:NEXT(1936$);

1936$         ASSIGN:        Process 19.NumberOut=Process 19.NumberOut + 1:
                             Process 19.WIP=Process 19.WIP-1:NEXT(235$);


;
;
;     Model statements for module:  Create 28
;

1939$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c2:MinutesToBaseTime(1440):NEXT(1940$);

1940$         ASSIGN:        Create for receiving b shift2 c2.NumberOut=Create for receiving b shift2 c2.NumberOut + 1
                             :NEXT(248$);


;
;
;     Model statements for module:  Create 29
;

1943$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c2:MinutesToBaseTime(1440):NEXT(1944$);

1944$         ASSIGN:        Create for receiving c shift2 c2.NumberOut=Create for receiving c shift2 c2.NumberOut + 1
                             :NEXT(256$);


;
;
;     Model statements for module:  Create 39
;

1947$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c2:MinutesToBaseTime(1440):NEXT(1948$);

1948$         ASSIGN:        Create for shipment b shift1 c2.NumberOut=Create for shipment b shift1 c2.NumberOut + 1:NEXT(278$);


;
;
;     Model statements for module:  Decide 145
;
278$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1951$,Yes:
                             Else,1952$,Yes;
1951$         ASSIGN:        Decide 145.NumberOut True=Decide 145.NumberOut True + 1:NEXT(279$);

1952$         ASSIGN:        Decide 145.NumberOut False=Decide 145.NumberOut False + 1:NEXT(280$);


;
;
;     Model statements for module:  Assign 105
;
279$          ASSIGN:        departureb1# c2=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,103):NEXT(281$);


;
;
;     Model statements for module:  Decide 146
;
281$          BRANCH,        1:
                             If,departureb1# c2==0,272$,Yes:
                             If,departureb1# c2==1,282$,Yes:
                             Else,283$,Yes;

;
;
;     Model statements for module:  Separate 27
;
283$          DUPLICATE,     100 - 50:
                             departureb1# c2-1,1957$,50:NEXT(1956$);

1956$         ASSIGN:        Separate 27.NumberOut Orig=Separate 27.NumberOut Orig + 1:NEXT(282$);

1957$         ASSIGN:        Separate 27.NumberOut Dup=Separate 27.NumberOut Dup + 1:NEXT(282$);


;
;
;     Model statements for module:  Process 32
;
282$          ASSIGN:        Process 32.NumberIn=Process 32.NumberIn + 1:
                             Process 32.WIP=Process 32.WIP+1;
1987$         STACK,         1:Save:NEXT(1961$);

1961$         QUEUE,         Process 32.Queue;
1960$         SEIZE,         2,VA:
                             Resource 20,1:NEXT(1959$);

1959$         DELAY:         HoursToBaseTime(expo(10/departureb1# c2,39)),,VA:NEXT(2002$);

2002$         ASSIGN:        Process 32.WaitTime=Process 32.WaitTime + Diff.WaitTime;
1966$         TALLY:         Process 32.WaitTimePerEntity,Diff.WaitTime,1;
1968$         TALLY:         Process 32.TotalTimePerEntity,Diff.StartTime,1;
1992$         ASSIGN:        Process 32.VATime=Process 32.VATime + Diff.VATime;
1993$         TALLY:         Process 32.VATimePerEntity,Diff.VATime,1;
1958$         RELEASE:       Resource 20,1;
2007$         STACK,         1:Destroy:NEXT(2006$);

2006$         ASSIGN:        Process 32.NumberOut=Process 32.NumberOut + 1:
                             Process 32.WIP=Process 32.WIP-1:NEXT(266$);


;
;
;     Model statements for module:  Assign 101
;
266$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 24
;
272$          ASSIGN:        Dispose 24.NumberOut=Dispose 24.NumberOut + 1;
2009$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 106
;
280$          ASSIGN:        departureb2# c2=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,104)
                             :NEXT(284$);


;
;
;     Model statements for module:  Decide 147
;
284$          BRANCH,        1:
                             If,departureb2# c2==0,272$,Yes:
                             If,departureb2# c2==1,285$,Yes:
                             Else,286$,Yes;

;
;
;     Model statements for module:  Separate 28
;
286$          DUPLICATE,     100 - 50:
                             departureb2# c2-1,2014$,50:NEXT(2013$);

2013$         ASSIGN:        Separate 28.NumberOut Orig=Separate 28.NumberOut Orig + 1:NEXT(285$);

2014$         ASSIGN:        Separate 28.NumberOut Dup=Separate 28.NumberOut Dup + 1:NEXT(285$);


;
;
;     Model statements for module:  Process 33
;
285$          ASSIGN:        Process 33.NumberIn=Process 33.NumberIn + 1:
                             Process 33.WIP=Process 33.WIP+1;
2044$         STACK,         1:Save:NEXT(2018$);

2018$         QUEUE,         Process 33.Queue;
2017$         SEIZE,         2,VA:
                             Resource 21,1:NEXT(2016$);

2016$         DELAY:         HoursToBaseTime(expo(14/departureb2# c2,40)),,VA:NEXT(2059$);

2059$         ASSIGN:        Process 33.WaitTime=Process 33.WaitTime + Diff.WaitTime;
2023$         TALLY:         Process 33.WaitTimePerEntity,Diff.WaitTime,1;
2025$         TALLY:         Process 33.TotalTimePerEntity,Diff.StartTime,1;
2049$         ASSIGN:        Process 33.VATime=Process 33.VATime + Diff.VATime;
2050$         TALLY:         Process 33.VATimePerEntity,Diff.VATime,1;
2015$         RELEASE:       Resource 21,1;
2064$         STACK,         1:Destroy:NEXT(2063$);

2063$         ASSIGN:        Process 33.NumberOut=Process 33.NumberOut + 1:
                             Process 33.WIP=Process 33.WIP-1:NEXT(266$);


;
;
;     Model statements for module:  Create 40
;

2066$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c2:MinutesToBaseTime(1440):NEXT(2067$);

2067$         ASSIGN:        Create for shipment c shift1 c2.NumberOut=Create for shipment c shift1 c2.NumberOut + 1:NEXT(287$);


;
;
;     Model statements for module:  Decide 148
;
287$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2070$,Yes:
                             Else,2071$,Yes;
2070$         ASSIGN:        Decide 148.NumberOut True=Decide 148.NumberOut True + 1:NEXT(288$);

2071$         ASSIGN:        Decide 148.NumberOut False=Decide 148.NumberOut False + 1:NEXT(289$);


;
;
;     Model statements for module:  Assign 107
;
288$          ASSIGN:        departurec1# c2=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,105):NEXT(290$);


;
;
;     Model statements for module:  Decide 149
;
290$          BRANCH,        1:
                             If,departurec1# c2==0,272$,Yes:
                             If,departurec1# c2==1,291$,Yes:
                             Else,292$,Yes;

;
;
;     Model statements for module:  Separate 29
;
292$          DUPLICATE,     100 - 50:
                             departurec1# c2-1,2076$,50:NEXT(2075$);

2075$         ASSIGN:        Separate 29.NumberOut Orig=Separate 29.NumberOut Orig + 1:NEXT(291$);

2076$         ASSIGN:        Separate 29.NumberOut Dup=Separate 29.NumberOut Dup + 1:NEXT(291$);


;
;
;     Model statements for module:  Process 34
;
291$          ASSIGN:        Process 34.NumberIn=Process 34.NumberIn + 1:
                             Process 34.WIP=Process 34.WIP+1;
2106$         STACK,         1:Save:NEXT(2080$);

2080$         QUEUE,         Process 34.Queue;
2079$         SEIZE,         2,VA:
                             Resource 22,1:NEXT(2078$);

2078$         DELAY:         HoursToBaseTime(expo(10/departurec1# c2,41)),,VA:NEXT(2121$);

2121$         ASSIGN:        Process 34.WaitTime=Process 34.WaitTime + Diff.WaitTime;
2085$         TALLY:         Process 34.WaitTimePerEntity,Diff.WaitTime,1;
2087$         TALLY:         Process 34.TotalTimePerEntity,Diff.StartTime,1;
2111$         ASSIGN:        Process 34.VATime=Process 34.VATime + Diff.VATime;
2112$         TALLY:         Process 34.VATimePerEntity,Diff.VATime,1;
2077$         RELEASE:       Resource 22,1;
2126$         STACK,         1:Destroy:NEXT(2125$);

2125$         ASSIGN:        Process 34.NumberOut=Process 34.NumberOut + 1:
                             Process 34.WIP=Process 34.WIP-1:NEXT(267$);


;
;
;     Model statements for module:  Assign 102
;
267$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 108
;
289$          ASSIGN:        departurec2# c2=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,106):NEXT(293$);


;
;
;     Model statements for module:  Decide 150
;
293$          BRANCH,        1:
                             If,departurec2# c2==0,272$,Yes:
                             If,departurec2# c2==1,294$,Yes:
                             Else,295$,Yes;

;
;
;     Model statements for module:  Separate 30
;
295$          DUPLICATE,     100 - 50:
                             departurec2# c2-1,2132$,50:NEXT(2131$);

2131$         ASSIGN:        Separate 30.NumberOut Orig=Separate 30.NumberOut Orig + 1:NEXT(294$);

2132$         ASSIGN:        Separate 30.NumberOut Dup=Separate 30.NumberOut Dup + 1:NEXT(294$);


;
;
;     Model statements for module:  Process 35
;
294$          ASSIGN:        Process 35.NumberIn=Process 35.NumberIn + 1:
                             Process 35.WIP=Process 35.WIP+1;
2162$         STACK,         1:Save:NEXT(2136$);

2136$         QUEUE,         Process 35.Queue;
2135$         SEIZE,         2,VA:
                             Resource 23,1:NEXT(2134$);

2134$         DELAY:         HoursToBaseTime(expo(14/departurec2# c2,42)),,VA:NEXT(2177$);

2177$         ASSIGN:        Process 35.WaitTime=Process 35.WaitTime + Diff.WaitTime;
2141$         TALLY:         Process 35.WaitTimePerEntity,Diff.WaitTime,1;
2143$         TALLY:         Process 35.TotalTimePerEntity,Diff.StartTime,1;
2167$         ASSIGN:        Process 35.VATime=Process 35.VATime + Diff.VATime;
2168$         TALLY:         Process 35.VATimePerEntity,Diff.VATime,1;
2133$         RELEASE:       Resource 23,1;
2182$         STACK,         1:Destroy:NEXT(2181$);

2181$         ASSIGN:        Process 35.NumberOut=Process 35.NumberOut + 1:
                             Process 35.WIP=Process 35.WIP-1:NEXT(267$);


;
;
;     Model statements for module:  Create 42
;

2184$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c2:MinutesToBaseTime(1440):NEXT(2185$);

2185$         ASSIGN:        Create for shipmenta shift2 c2.NumberOut=Create for shipmenta shift2 c2.NumberOut + 1:NEXT(269$);


;
;
;     Model statements for module:  Decide 142
;
269$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2188$,Yes:
                             Else,2189$,Yes;
2188$         ASSIGN:        Decide 142.NumberOut True=Decide 142.NumberOut True + 1:NEXT(268$);

2189$         ASSIGN:        Decide 142.NumberOut False=Decide 142.NumberOut False + 1:NEXT(270$);


;
;
;     Model statements for module:  Assign 103
;
268$          ASSIGN:        departurea1# c2=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,101):NEXT(271$);


;
;
;     Model statements for module:  Decide 143
;
271$          BRANCH,        1:
                             If,departurea1# c2==0,272$,Yes:
                             If,departurea1# c2==1,273$,Yes:
                             Else,274$,Yes;

;
;
;     Model statements for module:  Separate 25
;
274$          DUPLICATE,     100 - 50:
                             departurea1# c2-1,2194$,50:NEXT(2193$);

2193$         ASSIGN:        Separate 25.NumberOut Orig=Separate 25.NumberOut Orig + 1:NEXT(273$);

2194$         ASSIGN:        Separate 25.NumberOut Dup=Separate 25.NumberOut Dup + 1:NEXT(273$);


;
;
;     Model statements for module:  Process 30
;
273$          ASSIGN:        Process 30.NumberIn=Process 30.NumberIn + 1:
                             Process 30.WIP=Process 30.WIP+1;
2224$         STACK,         1:Save:NEXT(2198$);

2198$         QUEUE,         Process 30.Queue;
2197$         SEIZE,         2,VA:
                             Resource 18,1:NEXT(2196$);

2196$         DELAY:         HoursToBaseTime(expo(10/departurea1# c2,37)),,VA:NEXT(2239$);

2239$         ASSIGN:        Process 30.WaitTime=Process 30.WaitTime + Diff.WaitTime;
2203$         TALLY:         Process 30.WaitTimePerEntity,Diff.WaitTime,1;
2205$         TALLY:         Process 30.TotalTimePerEntity,Diff.StartTime,1;
2229$         ASSIGN:        Process 30.VATime=Process 30.VATime + Diff.VATime;
2230$         TALLY:         Process 30.VATimePerEntity,Diff.VATime,1;
2195$         RELEASE:       Resource 18,1;
2244$         STACK,         1:Destroy:NEXT(2243$);

2243$         ASSIGN:        Process 30.NumberOut=Process 30.NumberOut + 1:
                             Process 30.WIP=Process 30.WIP-1:NEXT(265$);


;
;
;     Model statements for module:  Assign 100
;
265$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 104
;
270$          ASSIGN:        departurea2# c2=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,102):NEXT(275$);


;
;
;     Model statements for module:  Decide 144
;
275$          BRANCH,        1:
                             If,departurea2# c2==0,272$,Yes:
                             If,departurea2# c2==1,277$,Yes:
                             Else,276$,Yes;

;
;
;     Model statements for module:  Separate 26
;
276$          DUPLICATE,     100 - 50:
                             departurea2# c2-1,2250$,50:NEXT(2249$);

2249$         ASSIGN:        Separate 26.NumberOut Orig=Separate 26.NumberOut Orig + 1:NEXT(277$);

2250$         ASSIGN:        Separate 26.NumberOut Dup=Separate 26.NumberOut Dup + 1:NEXT(277$);


;
;
;     Model statements for module:  Process 31
;
277$          ASSIGN:        Process 31.NumberIn=Process 31.NumberIn + 1:
                             Process 31.WIP=Process 31.WIP+1;
2280$         STACK,         1:Save:NEXT(2254$);

2254$         QUEUE,         Process 31.Queue;
2253$         SEIZE,         2,VA:
                             Resource 19,1:NEXT(2252$);

2252$         DELAY:         HoursToBaseTime(expo(14/departurea2# c2,38)),,VA:NEXT(2295$);

2295$         ASSIGN:        Process 31.WaitTime=Process 31.WaitTime + Diff.WaitTime;
2259$         TALLY:         Process 31.WaitTimePerEntity,Diff.WaitTime,1;
2261$         TALLY:         Process 31.TotalTimePerEntity,Diff.StartTime,1;
2285$         ASSIGN:        Process 31.VATime=Process 31.VATime + Diff.VATime;
2286$         TALLY:         Process 31.VATimePerEntity,Diff.VATime,1;
2251$         RELEASE:       Resource 19,1;
2300$         STACK,         1:Destroy:NEXT(2299$);

2299$         ASSIGN:        Process 31.NumberOut=Process 31.NumberOut + 1:
                             Process 31.WIP=Process 31.WIP-1:NEXT(265$);


;
;
;     Model statements for module:  Create 43
;

2302$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c2:MinutesToBaseTime(1440):NEXT(2303$);

2303$         ASSIGN:        Create for shipment b shift2 c2.NumberOut=Create for shipment b shift2 c2.NumberOut + 1:NEXT(278$);


;
;
;     Model statements for module:  Create 45
;

2306$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c3:MinutesToBaseTime(1440):NEXT(2307$);

2307$         ASSIGN:        Create for receiving b shift1 c3.NumberOut=Create for receiving b shift1 c3.NumberOut + 1
                             :NEXT(319$);


;
;
;     Model statements for module:  Decide 157
;
319$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2310$,Yes:
                             Else,2311$,Yes;
2310$         ASSIGN:        Decide 157.NumberOut True=Decide 157.NumberOut True + 1:NEXT(320$);

2311$         ASSIGN:        Decide 157.NumberOut False=Decide 157.NumberOut False + 1:NEXT(321$);


;
;
;     Model statements for module:  Assign 117
;
320$          ASSIGN:        receiptb1# c3=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,79)
                             :NEXT(322$);


;
;
;     Model statements for module:  Decide 158
;
322$          BRANCH,        1:
                             If,receiptb1# c3==0,311$,Yes:
                             If,receiptb1# c3==1,323$,Yes:
                             Else,324$,Yes;

;
;
;     Model statements for module:  Separate 33
;
324$          DUPLICATE,     100 - 50:
                             receiptb1# c3-1,2316$,50:NEXT(2315$);

2315$         ASSIGN:        Separate 33.NumberOut Orig=Separate 33.NumberOut Orig + 1:NEXT(323$);

2316$         ASSIGN:        Separate 33.NumberOut Dup=Separate 33.NumberOut Dup + 1:NEXT(323$);


;
;
;     Model statements for module:  Process 38
;
323$          ASSIGN:        Process 38.NumberIn=Process 38.NumberIn + 1:
                             Process 38.WIP=Process 38.WIP+1;
2346$         STACK,         1:Save:NEXT(2320$);

2320$         QUEUE,         Process 38.Queue;
2319$         SEIZE,         2,VA:
                             Resource 26,1:NEXT(2318$);

2318$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c3,15)),,VA:NEXT(2361$);

2361$         ASSIGN:        Process 38.WaitTime=Process 38.WaitTime + Diff.WaitTime;
2325$         TALLY:         Process 38.WaitTimePerEntity,Diff.WaitTime,1;
2327$         TALLY:         Process 38.TotalTimePerEntity,Diff.StartTime,1;
2351$         ASSIGN:        Process 38.VATime=Process 38.VATime + Diff.VATime;
2352$         TALLY:         Process 38.VATimePerEntity,Diff.VATime,1;
2317$         RELEASE:       Resource 26,1;
2366$         STACK,         1:Destroy:NEXT(2365$);

2365$         ASSIGN:        Process 38.NumberOut=Process 38.NumberOut + 1:
                             Process 38.WIP=Process 38.WIP-1:NEXT(307$);


;
;
;     Model statements for module:  Assign 113
;
307$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 25
;
311$          ASSIGN:        Dispose 25.NumberOut=Dispose 25.NumberOut + 1;
2368$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 118
;
321$          ASSIGN:        receiptb2# c3=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,80)
                             :NEXT(325$);


;
;
;     Model statements for module:  Decide 159
;
325$          BRANCH,        1:
                             If,receiptb2# c3==0,311$,Yes:
                             If,receiptb2# c3==1,326$,Yes:
                             Else,327$,Yes;

;
;
;     Model statements for module:  Separate 34
;
327$          DUPLICATE,     100 - 50:
                             receiptb2# c3-1,2373$,50:NEXT(2372$);

2372$         ASSIGN:        Separate 34.NumberOut Orig=Separate 34.NumberOut Orig + 1:NEXT(326$);

2373$         ASSIGN:        Separate 34.NumberOut Dup=Separate 34.NumberOut Dup + 1:NEXT(326$);


;
;
;     Model statements for module:  Process 39
;
326$          ASSIGN:        Process 39.NumberIn=Process 39.NumberIn + 1:
                             Process 39.WIP=Process 39.WIP+1;
2403$         STACK,         1:Save:NEXT(2377$);

2377$         QUEUE,         Process 39.Queue;
2376$         SEIZE,         2,VA:
                             Resource 27,1:NEXT(2375$);

2375$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c3,16)),,VA:NEXT(2418$);

2418$         ASSIGN:        Process 39.WaitTime=Process 39.WaitTime + Diff.WaitTime;
2382$         TALLY:         Process 39.WaitTimePerEntity,Diff.WaitTime,1;
2384$         TALLY:         Process 39.TotalTimePerEntity,Diff.StartTime,1;
2408$         ASSIGN:        Process 39.VATime=Process 39.VATime + Diff.VATime;
2409$         TALLY:         Process 39.VATimePerEntity,Diff.VATime,1;
2374$         RELEASE:       Resource 27,1;
2423$         STACK,         1:Destroy:NEXT(2422$);

2422$         ASSIGN:        Process 39.NumberOut=Process 39.NumberOut + 1:
                             Process 39.WIP=Process 39.WIP-1:NEXT(307$);


;
;
;     Model statements for module:  Create 46
;

2425$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c3:MinutesToBaseTime(1440):NEXT(2426$);

2426$         ASSIGN:        Create for receiving c shift1 c3.NumberOut=Create for receiving c shift1 c3.NumberOut + 1
                             :NEXT(328$);


;
;
;     Model statements for module:  Decide 160
;
328$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2429$,Yes:
                             Else,2430$,Yes;
2429$         ASSIGN:        Decide 160.NumberOut True=Decide 160.NumberOut True + 1:NEXT(329$);

2430$         ASSIGN:        Decide 160.NumberOut False=Decide 160.NumberOut False + 1:NEXT(330$);


;
;
;     Model statements for module:  Assign 119
;
329$          ASSIGN:        receiptc1# c3=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,81)
                             :NEXT(331$);


;
;
;     Model statements for module:  Decide 161
;
331$          BRANCH,        1:
                             If,receiptc1# c3==0,311$,Yes:
                             If,receiptc1# c3==1,332$,Yes:
                             Else,333$,Yes;

;
;
;     Model statements for module:  Separate 35
;
333$          DUPLICATE,     100 - 50:
                             receiptc1# c3-1,2435$,50:NEXT(2434$);

2434$         ASSIGN:        Separate 35.NumberOut Orig=Separate 35.NumberOut Orig + 1:NEXT(332$);

2435$         ASSIGN:        Separate 35.NumberOut Dup=Separate 35.NumberOut Dup + 1:NEXT(332$);


;
;
;     Model statements for module:  Process 40
;
332$          ASSIGN:        Process 40.NumberIn=Process 40.NumberIn + 1:
                             Process 40.WIP=Process 40.WIP+1;
2465$         STACK,         1:Save:NEXT(2439$);

2439$         QUEUE,         Process 40.Queue;
2438$         SEIZE,         2,VA:
                             Resource 28,1:NEXT(2437$);

2437$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c3,17)),,VA:NEXT(2480$);

2480$         ASSIGN:        Process 40.WaitTime=Process 40.WaitTime + Diff.WaitTime;
2444$         TALLY:         Process 40.WaitTimePerEntity,Diff.WaitTime,1;
2446$         TALLY:         Process 40.TotalTimePerEntity,Diff.StartTime,1;
2470$         ASSIGN:        Process 40.VATime=Process 40.VATime + Diff.VATime;
2471$         TALLY:         Process 40.VATimePerEntity,Diff.VATime,1;
2436$         RELEASE:       Resource 28,1;
2485$         STACK,         1:Destroy:NEXT(2484$);

2484$         ASSIGN:        Process 40.NumberOut=Process 40.NumberOut + 1:
                             Process 40.WIP=Process 40.WIP-1:NEXT(308$);


;
;
;     Model statements for module:  Assign 114
;
308$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 120
;
330$          ASSIGN:        receiptc2# c3=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,82)
                             :NEXT(334$);


;
;
;     Model statements for module:  Decide 162
;
334$          BRANCH,        1:
                             If,receiptc2# c3==0,311$,Yes:
                             If,receiptc2# c3==1,335$,Yes:
                             Else,336$,Yes;

;
;
;     Model statements for module:  Separate 36
;
336$          DUPLICATE,     100 - 50:
                             receiptc2# c3-1,2491$,50:NEXT(2490$);

2490$         ASSIGN:        Separate 36.NumberOut Orig=Separate 36.NumberOut Orig + 1:NEXT(335$);

2491$         ASSIGN:        Separate 36.NumberOut Dup=Separate 36.NumberOut Dup + 1:NEXT(335$);


;
;
;     Model statements for module:  Process 41
;
335$          ASSIGN:        Process 41.NumberIn=Process 41.NumberIn + 1:
                             Process 41.WIP=Process 41.WIP+1;
2521$         STACK,         1:Save:NEXT(2495$);

2495$         QUEUE,         Process 41.Queue;
2494$         SEIZE,         2,VA:
                             Resource 29,1:NEXT(2493$);

2493$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c3,18)),,VA:NEXT(2536$);

2536$         ASSIGN:        Process 41.WaitTime=Process 41.WaitTime + Diff.WaitTime;
2500$         TALLY:         Process 41.WaitTimePerEntity,Diff.WaitTime,1;
2502$         TALLY:         Process 41.TotalTimePerEntity,Diff.StartTime,1;
2526$         ASSIGN:        Process 41.VATime=Process 41.VATime + Diff.VATime;
2527$         TALLY:         Process 41.VATimePerEntity,Diff.VATime,1;
2492$         RELEASE:       Resource 29,1;
2541$         STACK,         1:Destroy:NEXT(2540$);

2540$         ASSIGN:        Process 41.NumberOut=Process 41.NumberOut + 1:
                             Process 41.WIP=Process 41.WIP-1:NEXT(308$);


;
;
;     Model statements for module:  Create 48
;

2543$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c3:MinutesToBaseTime(1440):NEXT(2544$);

2544$         ASSIGN:        Create for receiving a shift2 c3.NumberOut=Create for receiving a shift2 c3.NumberOut + 1
                             :NEXT(314$);


;
;
;     Model statements for module:  Decide 155
;
314$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2547$,Yes:
                             Else,2548$,Yes;
2547$         ASSIGN:        Decide 155.NumberOut True=Decide 155.NumberOut True + 1:NEXT(309$);

2548$         ASSIGN:        Decide 155.NumberOut False=Decide 155.NumberOut False + 1:NEXT(315$);


;
;
;     Model statements for module:  Assign 115
;
309$          ASSIGN:        receipta1# c3=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,77)
                             :NEXT(310$);


;
;
;     Model statements for module:  Decide 154
;
310$          BRANCH,        1:
                             If,receipta1# c3==0,311$,Yes:
                             If,receipta1# c3==1,312$,Yes:
                             Else,313$,Yes;

;
;
;     Model statements for module:  Separate 31
;
313$          DUPLICATE,     100 - 50:
                             receipta1# c3-1,2553$,50:NEXT(2552$);

2552$         ASSIGN:        Separate 31.NumberOut Orig=Separate 31.NumberOut Orig + 1:NEXT(312$);

2553$         ASSIGN:        Separate 31.NumberOut Dup=Separate 31.NumberOut Dup + 1:NEXT(312$);


;
;
;     Model statements for module:  Process 36
;
312$          ASSIGN:        Process 36.NumberIn=Process 36.NumberIn + 1:
                             Process 36.WIP=Process 36.WIP+1;
2583$         STACK,         1:Save:NEXT(2557$);

2557$         QUEUE,         Process 36.Queue;
2556$         SEIZE,         2,VA:
                             Resource 24,1:NEXT(2555$);

2555$         DELAY:         HoursToBaseTime(expo(10/receipta1# c3,13)),,VA:NEXT(2598$);

2598$         ASSIGN:        Process 36.WaitTime=Process 36.WaitTime + Diff.WaitTime;
2562$         TALLY:         Process 36.WaitTimePerEntity,Diff.WaitTime,1;
2564$         TALLY:         Process 36.TotalTimePerEntity,Diff.StartTime,1;
2588$         ASSIGN:        Process 36.VATime=Process 36.VATime + Diff.VATime;
2589$         TALLY:         Process 36.VATimePerEntity,Diff.VATime,1;
2554$         RELEASE:       Resource 24,1;
2603$         STACK,         1:Destroy:NEXT(2602$);

2602$         ASSIGN:        Process 36.NumberOut=Process 36.NumberOut + 1:
                             Process 36.WIP=Process 36.WIP-1:NEXT(306$);


;
;
;     Model statements for module:  Assign 112
;
306$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 116
;
315$          ASSIGN:        receipta2# c3=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,78)
                             :NEXT(316$);


;
;
;     Model statements for module:  Decide 156
;
316$          BRANCH,        1:
                             If,receipta2# c3==0,311$,Yes:
                             If,receipta2# c3==1,318$,Yes:
                             Else,317$,Yes;

;
;
;     Model statements for module:  Separate 32
;
317$          DUPLICATE,     100 - 50:
                             receipta2# c3-1,2609$,50:NEXT(2608$);

2608$         ASSIGN:        Separate 32.NumberOut Orig=Separate 32.NumberOut Orig + 1:NEXT(318$);

2609$         ASSIGN:        Separate 32.NumberOut Dup=Separate 32.NumberOut Dup + 1:NEXT(318$);


;
;
;     Model statements for module:  Process 37
;
318$          ASSIGN:        Process 37.NumberIn=Process 37.NumberIn + 1:
                             Process 37.WIP=Process 37.WIP+1;
2639$         STACK,         1:Save:NEXT(2613$);

2613$         QUEUE,         Process 37.Queue;
2612$         SEIZE,         2,VA:
                             Resource 25,1:NEXT(2611$);

2611$         DELAY:         HoursToBaseTime(expo(14/receipta2# c3,14)),,VA:NEXT(2654$);

2654$         ASSIGN:        Process 37.WaitTime=Process 37.WaitTime + Diff.WaitTime;
2618$         TALLY:         Process 37.WaitTimePerEntity,Diff.WaitTime,1;
2620$         TALLY:         Process 37.TotalTimePerEntity,Diff.StartTime,1;
2644$         ASSIGN:        Process 37.VATime=Process 37.VATime + Diff.VATime;
2645$         TALLY:         Process 37.VATimePerEntity,Diff.VATime,1;
2610$         RELEASE:       Resource 25,1;
2659$         STACK,         1:Destroy:NEXT(2658$);

2658$         ASSIGN:        Process 37.NumberOut=Process 37.NumberOut + 1:
                             Process 37.WIP=Process 37.WIP-1:NEXT(306$);


;
;
;     Model statements for module:  Create 49
;

2661$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c3:MinutesToBaseTime(1440):NEXT(2662$);

2662$         ASSIGN:        Create for receiving b shift2 c3.NumberOut=Create for receiving b shift2 c3.NumberOut + 1
                             :NEXT(319$);


;
;
;     Model statements for module:  Create 50
;

2665$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c3:MinutesToBaseTime(1440):NEXT(2666$);

2666$         ASSIGN:        Create for receiving c shift2 c3.NumberOut=Create for receiving c shift2 c3.NumberOut + 1
                             :NEXT(328$);


;
;
;     Model statements for module:  Create 54
;

2669$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c3:MinutesToBaseTime(1440):NEXT(2670$);

2670$         ASSIGN:        Create for shipment b shift1 c3.NumberOut=Create for shipment b shift1 c3.NumberOut + 1:NEXT(350$);


;
;
;     Model statements for module:  Decide 166
;
350$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2673$,Yes:
                             Else,2674$,Yes;
2673$         ASSIGN:        Decide 166.NumberOut True=Decide 166.NumberOut True + 1:NEXT(351$);

2674$         ASSIGN:        Decide 166.NumberOut False=Decide 166.NumberOut False + 1:NEXT(352$);


;
;
;     Model statements for module:  Assign 126
;
351$          ASSIGN:        departureb1# c3=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,109):NEXT(353$);


;
;
;     Model statements for module:  Decide 167
;
353$          BRANCH,        1:
                             If,departureb1# c3==0,344$,Yes:
                             If,departureb1# c3==1,354$,Yes:
                             Else,355$,Yes;

;
;
;     Model statements for module:  Separate 39
;
355$          DUPLICATE,     100 - 50:
                             departureb1# c3-1,2679$,50:NEXT(2678$);

2678$         ASSIGN:        Separate 39.NumberOut Orig=Separate 39.NumberOut Orig + 1:NEXT(354$);

2679$         ASSIGN:        Separate 39.NumberOut Dup=Separate 39.NumberOut Dup + 1:NEXT(354$);


;
;
;     Model statements for module:  Process 44
;
354$          ASSIGN:        Process 44.NumberIn=Process 44.NumberIn + 1:
                             Process 44.WIP=Process 44.WIP+1;
2709$         STACK,         1:Save:NEXT(2683$);

2683$         QUEUE,         Process 44.Queue;
2682$         SEIZE,         2,VA:
                             Resource 32,1:NEXT(2681$);

2681$         DELAY:         HoursToBaseTime(expo(10/departureb1# c3,45)),,VA:NEXT(2724$);

2724$         ASSIGN:        Process 44.WaitTime=Process 44.WaitTime + Diff.WaitTime;
2688$         TALLY:         Process 44.WaitTimePerEntity,Diff.WaitTime,1;
2690$         TALLY:         Process 44.TotalTimePerEntity,Diff.StartTime,1;
2714$         ASSIGN:        Process 44.VATime=Process 44.VATime + Diff.VATime;
2715$         TALLY:         Process 44.VATimePerEntity,Diff.VATime,1;
2680$         RELEASE:       Resource 32,1;
2729$         STACK,         1:Destroy:NEXT(2728$);

2728$         ASSIGN:        Process 44.NumberOut=Process 44.NumberOut + 1:
                             Process 44.WIP=Process 44.WIP-1:NEXT(338$);


;
;
;     Model statements for module:  Assign 122
;
338$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 26
;
344$          ASSIGN:        Dispose 26.NumberOut=Dispose 26.NumberOut + 1;
2731$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 127
;
352$          ASSIGN:        departureb2# c3=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,110)
                             :NEXT(356$);


;
;
;     Model statements for module:  Decide 168
;
356$          BRANCH,        1:
                             If,departureb2# c3==0,344$,Yes:
                             If,departureb2# c3==1,357$,Yes:
                             Else,358$,Yes;

;
;
;     Model statements for module:  Separate 40
;
358$          DUPLICATE,     100 - 50:
                             departureb2# c3-1,2736$,50:NEXT(2735$);

2735$         ASSIGN:        Separate 40.NumberOut Orig=Separate 40.NumberOut Orig + 1:NEXT(357$);

2736$         ASSIGN:        Separate 40.NumberOut Dup=Separate 40.NumberOut Dup + 1:NEXT(357$);


;
;
;     Model statements for module:  Process 45
;
357$          ASSIGN:        Process 45.NumberIn=Process 45.NumberIn + 1:
                             Process 45.WIP=Process 45.WIP+1;
2766$         STACK,         1:Save:NEXT(2740$);

2740$         QUEUE,         Process 45.Queue;
2739$         SEIZE,         2,VA:
                             Resource 33,1:NEXT(2738$);

2738$         DELAY:         HoursToBaseTime(expo(14/departureb2# c3,46)),,VA:NEXT(2781$);

2781$         ASSIGN:        Process 45.WaitTime=Process 45.WaitTime + Diff.WaitTime;
2745$         TALLY:         Process 45.WaitTimePerEntity,Diff.WaitTime,1;
2747$         TALLY:         Process 45.TotalTimePerEntity,Diff.StartTime,1;
2771$         ASSIGN:        Process 45.VATime=Process 45.VATime + Diff.VATime;
2772$         TALLY:         Process 45.VATimePerEntity,Diff.VATime,1;
2737$         RELEASE:       Resource 33,1;
2786$         STACK,         1:Destroy:NEXT(2785$);

2785$         ASSIGN:        Process 45.NumberOut=Process 45.NumberOut + 1:
                             Process 45.WIP=Process 45.WIP-1:NEXT(338$);


;
;
;     Model statements for module:  Create 55
;

2788$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c3:MinutesToBaseTime(1440):NEXT(2789$);

2789$         ASSIGN:        Create for shipment c shift1 c3.NumberOut=Create for shipment c shift1 c3.NumberOut + 1:NEXT(359$);


;
;
;     Model statements for module:  Decide 169
;
359$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2792$,Yes:
                             Else,2793$,Yes;
2792$         ASSIGN:        Decide 169.NumberOut True=Decide 169.NumberOut True + 1:NEXT(360$);

2793$         ASSIGN:        Decide 169.NumberOut False=Decide 169.NumberOut False + 1:NEXT(361$);


;
;
;     Model statements for module:  Assign 128
;
360$          ASSIGN:        departurec1# c3=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,111):NEXT(362$);


;
;
;     Model statements for module:  Decide 170
;
362$          BRANCH,        1:
                             If,departurec1# c3==0,344$,Yes:
                             If,departurec1# c3==1,363$,Yes:
                             Else,364$,Yes;

;
;
;     Model statements for module:  Separate 41
;
364$          DUPLICATE,     100 - 50:
                             departurec1# c3-1,2798$,50:NEXT(2797$);

2797$         ASSIGN:        Separate 41.NumberOut Orig=Separate 41.NumberOut Orig + 1:NEXT(363$);

2798$         ASSIGN:        Separate 41.NumberOut Dup=Separate 41.NumberOut Dup + 1:NEXT(363$);


;
;
;     Model statements for module:  Process 46
;
363$          ASSIGN:        Process 46.NumberIn=Process 46.NumberIn + 1:
                             Process 46.WIP=Process 46.WIP+1;
2828$         STACK,         1:Save:NEXT(2802$);

2802$         QUEUE,         Process 46.Queue;
2801$         SEIZE,         2,VA:
                             Resource 34,1:NEXT(2800$);

2800$         DELAY:         HoursToBaseTime(expo(10/departurec1# c3,47)),,VA:NEXT(2843$);

2843$         ASSIGN:        Process 46.WaitTime=Process 46.WaitTime + Diff.WaitTime;
2807$         TALLY:         Process 46.WaitTimePerEntity,Diff.WaitTime,1;
2809$         TALLY:         Process 46.TotalTimePerEntity,Diff.StartTime,1;
2833$         ASSIGN:        Process 46.VATime=Process 46.VATime + Diff.VATime;
2834$         TALLY:         Process 46.VATimePerEntity,Diff.VATime,1;
2799$         RELEASE:       Resource 34,1;
2848$         STACK,         1:Destroy:NEXT(2847$);

2847$         ASSIGN:        Process 46.NumberOut=Process 46.NumberOut + 1:
                             Process 46.WIP=Process 46.WIP-1:NEXT(339$);


;
;
;     Model statements for module:  Assign 123
;
339$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 129
;
361$          ASSIGN:        departurec2# c3=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,112):NEXT(365$);


;
;
;     Model statements for module:  Decide 171
;
365$          BRANCH,        1:
                             If,departurec2# c3==0,344$,Yes:
                             If,departurec2# c3==1,366$,Yes:
                             Else,367$,Yes;

;
;
;     Model statements for module:  Separate 42
;
367$          DUPLICATE,     100 - 50:
                             departurec2# c3-1,2854$,50:NEXT(2853$);

2853$         ASSIGN:        Separate 42.NumberOut Orig=Separate 42.NumberOut Orig + 1:NEXT(366$);

2854$         ASSIGN:        Separate 42.NumberOut Dup=Separate 42.NumberOut Dup + 1:NEXT(366$);


;
;
;     Model statements for module:  Process 47
;
366$          ASSIGN:        Process 47.NumberIn=Process 47.NumberIn + 1:
                             Process 47.WIP=Process 47.WIP+1;
2884$         STACK,         1:Save:NEXT(2858$);

2858$         QUEUE,         Process 47.Queue;
2857$         SEIZE,         2,VA:
                             Resource 35,1:NEXT(2856$);

2856$         DELAY:         HoursToBaseTime(expo(14/departurec2# c3,48)),,VA:NEXT(2899$);

2899$         ASSIGN:        Process 47.WaitTime=Process 47.WaitTime + Diff.WaitTime;
2863$         TALLY:         Process 47.WaitTimePerEntity,Diff.WaitTime,1;
2865$         TALLY:         Process 47.TotalTimePerEntity,Diff.StartTime,1;
2889$         ASSIGN:        Process 47.VATime=Process 47.VATime + Diff.VATime;
2890$         TALLY:         Process 47.VATimePerEntity,Diff.VATime,1;
2855$         RELEASE:       Resource 35,1;
2904$         STACK,         1:Destroy:NEXT(2903$);

2903$         ASSIGN:        Process 47.NumberOut=Process 47.NumberOut + 1:
                             Process 47.WIP=Process 47.WIP-1:NEXT(339$);


;
;
;     Model statements for module:  Create 57
;

2906$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c3:MinutesToBaseTime(1440):NEXT(2907$);

2907$         ASSIGN:        Create for shipmenta shift2 c3.NumberOut=Create for shipmenta shift2 c3.NumberOut + 1:NEXT(341$);


;
;
;     Model statements for module:  Decide 163
;
341$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2910$,Yes:
                             Else,2911$,Yes;
2910$         ASSIGN:        Decide 163.NumberOut True=Decide 163.NumberOut True + 1:NEXT(340$);

2911$         ASSIGN:        Decide 163.NumberOut False=Decide 163.NumberOut False + 1:NEXT(342$);


;
;
;     Model statements for module:  Assign 124
;
340$          ASSIGN:        departurea1# c3=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,107):NEXT(343$);


;
;
;     Model statements for module:  Decide 164
;
343$          BRANCH,        1:
                             If,departurea1# c3==0,344$,Yes:
                             If,departurea1# c3==1,345$,Yes:
                             Else,346$,Yes;

;
;
;     Model statements for module:  Separate 37
;
346$          DUPLICATE,     100 - 50:
                             departurea1# c3-1,2916$,50:NEXT(2915$);

2915$         ASSIGN:        Separate 37.NumberOut Orig=Separate 37.NumberOut Orig + 1:NEXT(345$);

2916$         ASSIGN:        Separate 37.NumberOut Dup=Separate 37.NumberOut Dup + 1:NEXT(345$);


;
;
;     Model statements for module:  Process 42
;
345$          ASSIGN:        Process 42.NumberIn=Process 42.NumberIn + 1:
                             Process 42.WIP=Process 42.WIP+1;
2946$         STACK,         1:Save:NEXT(2920$);

2920$         QUEUE,         Process 42.Queue;
2919$         SEIZE,         2,VA:
                             Resource 30,1:NEXT(2918$);

2918$         DELAY:         HoursToBaseTime(expo(10/departurea1# c3,43)),,VA:NEXT(2961$);

2961$         ASSIGN:        Process 42.WaitTime=Process 42.WaitTime + Diff.WaitTime;
2925$         TALLY:         Process 42.WaitTimePerEntity,Diff.WaitTime,1;
2927$         TALLY:         Process 42.TotalTimePerEntity,Diff.StartTime,1;
2951$         ASSIGN:        Process 42.VATime=Process 42.VATime + Diff.VATime;
2952$         TALLY:         Process 42.VATimePerEntity,Diff.VATime,1;
2917$         RELEASE:       Resource 30,1;
2966$         STACK,         1:Destroy:NEXT(2965$);

2965$         ASSIGN:        Process 42.NumberOut=Process 42.NumberOut + 1:
                             Process 42.WIP=Process 42.WIP-1:NEXT(337$);


;
;
;     Model statements for module:  Assign 121
;
337$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 125
;
342$          ASSIGN:        departurea2# c3=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,108):NEXT(347$);


;
;
;     Model statements for module:  Decide 165
;
347$          BRANCH,        1:
                             If,departurea2# c3==0,344$,Yes:
                             If,departurea2# c3==1,349$,Yes:
                             Else,348$,Yes;

;
;
;     Model statements for module:  Separate 38
;
348$          DUPLICATE,     100 - 50:
                             departurea2# c3-1,2972$,50:NEXT(2971$);

2971$         ASSIGN:        Separate 38.NumberOut Orig=Separate 38.NumberOut Orig + 1:NEXT(349$);

2972$         ASSIGN:        Separate 38.NumberOut Dup=Separate 38.NumberOut Dup + 1:NEXT(349$);


;
;
;     Model statements for module:  Process 43
;
349$          ASSIGN:        Process 43.NumberIn=Process 43.NumberIn + 1:
                             Process 43.WIP=Process 43.WIP+1;
3002$         STACK,         1:Save:NEXT(2976$);

2976$         QUEUE,         Process 43.Queue;
2975$         SEIZE,         2,VA:
                             Resource 31,1:NEXT(2974$);

2974$         DELAY:         HoursToBaseTime(expo(14/departurea2# c3,44)),,VA:NEXT(3017$);

3017$         ASSIGN:        Process 43.WaitTime=Process 43.WaitTime + Diff.WaitTime;
2981$         TALLY:         Process 43.WaitTimePerEntity,Diff.WaitTime,1;
2983$         TALLY:         Process 43.TotalTimePerEntity,Diff.StartTime,1;
3007$         ASSIGN:        Process 43.VATime=Process 43.VATime + Diff.VATime;
3008$         TALLY:         Process 43.VATimePerEntity,Diff.VATime,1;
2973$         RELEASE:       Resource 31,1;
3022$         STACK,         1:Destroy:NEXT(3021$);

3021$         ASSIGN:        Process 43.NumberOut=Process 43.NumberOut + 1:
                             Process 43.WIP=Process 43.WIP-1:NEXT(337$);


;
;
;     Model statements for module:  Create 58
;

3024$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c3:MinutesToBaseTime(1440):NEXT(3025$);

3025$         ASSIGN:        Create for shipment b shift2 c3.NumberOut=Create for shipment b shift2 c3.NumberOut + 1:NEXT(350$);


;
;
;     Model statements for module:  Create 60
;

3028$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c4:MinutesToBaseTime(1440):NEXT(3029$);

3029$         ASSIGN:        Create for receiving b shift1 c4.NumberOut=Create for receiving b shift1 c4.NumberOut + 1
                             :NEXT(381$);


;
;
;     Model statements for module:  Decide 175
;
381$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3032$,Yes:
                             Else,3033$,Yes;
3032$         ASSIGN:        Decide 175.NumberOut True=Decide 175.NumberOut True + 1:NEXT(382$);

3033$         ASSIGN:        Decide 175.NumberOut False=Decide 175.NumberOut False + 1:NEXT(383$);


;
;
;     Model statements for module:  Assign 135
;
382$          ASSIGN:        receiptb1# c4=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,85)
                             :NEXT(384$);


;
;
;     Model statements for module:  Decide 176
;
384$          BRANCH,        1:
                             If,receiptb1# c4==0,373$,Yes:
                             If,receiptb1# c4==1,385$,Yes:
                             Else,386$,Yes;

;
;
;     Model statements for module:  Separate 45
;
386$          DUPLICATE,     100 - 50:
                             receiptb1# c4-1,3038$,50:NEXT(3037$);

3037$         ASSIGN:        Separate 45.NumberOut Orig=Separate 45.NumberOut Orig + 1:NEXT(385$);

3038$         ASSIGN:        Separate 45.NumberOut Dup=Separate 45.NumberOut Dup + 1:NEXT(385$);


;
;
;     Model statements for module:  Process 50
;
385$          ASSIGN:        Process 50.NumberIn=Process 50.NumberIn + 1:
                             Process 50.WIP=Process 50.WIP+1;
3068$         STACK,         1:Save:NEXT(3042$);

3042$         QUEUE,         Process 50.Queue;
3041$         SEIZE,         2,VA:
                             Resource 38,1:NEXT(3040$);

3040$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c4,21)),,VA:NEXT(3083$);

3083$         ASSIGN:        Process 50.WaitTime=Process 50.WaitTime + Diff.WaitTime;
3047$         TALLY:         Process 50.WaitTimePerEntity,Diff.WaitTime,1;
3049$         TALLY:         Process 50.TotalTimePerEntity,Diff.StartTime,1;
3073$         ASSIGN:        Process 50.VATime=Process 50.VATime + Diff.VATime;
3074$         TALLY:         Process 50.VATimePerEntity,Diff.VATime,1;
3039$         RELEASE:       Resource 38,1;
3088$         STACK,         1:Destroy:NEXT(3087$);

3087$         ASSIGN:        Process 50.NumberOut=Process 50.NumberOut + 1:
                             Process 50.WIP=Process 50.WIP-1:NEXT(369$);


;
;
;     Model statements for module:  Assign 131
;
369$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 27
;
373$          ASSIGN:        Dispose 27.NumberOut=Dispose 27.NumberOut + 1;
3090$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 136
;
383$          ASSIGN:        receiptb2# c4=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,86)
                             :NEXT(387$);


;
;
;     Model statements for module:  Decide 177
;
387$          BRANCH,        1:
                             If,receiptb2# c4==0,373$,Yes:
                             If,receiptb2# c4==1,388$,Yes:
                             Else,389$,Yes;

;
;
;     Model statements for module:  Separate 46
;
389$          DUPLICATE,     100 - 50:
                             receiptb2# c4-1,3095$,50:NEXT(3094$);

3094$         ASSIGN:        Separate 46.NumberOut Orig=Separate 46.NumberOut Orig + 1:NEXT(388$);

3095$         ASSIGN:        Separate 46.NumberOut Dup=Separate 46.NumberOut Dup + 1:NEXT(388$);


;
;
;     Model statements for module:  Process 51
;
388$          ASSIGN:        Process 51.NumberIn=Process 51.NumberIn + 1:
                             Process 51.WIP=Process 51.WIP+1;
3125$         STACK,         1:Save:NEXT(3099$);

3099$         QUEUE,         Process 51.Queue;
3098$         SEIZE,         2,VA:
                             Resource 39,1:NEXT(3097$);

3097$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c4,22)),,VA:NEXT(3140$);

3140$         ASSIGN:        Process 51.WaitTime=Process 51.WaitTime + Diff.WaitTime;
3104$         TALLY:         Process 51.WaitTimePerEntity,Diff.WaitTime,1;
3106$         TALLY:         Process 51.TotalTimePerEntity,Diff.StartTime,1;
3130$         ASSIGN:        Process 51.VATime=Process 51.VATime + Diff.VATime;
3131$         TALLY:         Process 51.VATimePerEntity,Diff.VATime,1;
3096$         RELEASE:       Resource 39,1;
3145$         STACK,         1:Destroy:NEXT(3144$);

3144$         ASSIGN:        Process 51.NumberOut=Process 51.NumberOut + 1:
                             Process 51.WIP=Process 51.WIP-1:NEXT(369$);


;
;
;     Model statements for module:  Create 61
;

3147$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c4:MinutesToBaseTime(1440):NEXT(3148$);

3148$         ASSIGN:        Create for receiving c shift1 c4.NumberOut=Create for receiving c shift1 c4.NumberOut + 1
                             :NEXT(390$);


;
;
;     Model statements for module:  Decide 178
;
390$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3151$,Yes:
                             Else,3152$,Yes;
3151$         ASSIGN:        Decide 178.NumberOut True=Decide 178.NumberOut True + 1:NEXT(391$);

3152$         ASSIGN:        Decide 178.NumberOut False=Decide 178.NumberOut False + 1:NEXT(392$);


;
;
;     Model statements for module:  Assign 137
;
391$          ASSIGN:        receiptc1# c4=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,87)
                             :NEXT(393$);


;
;
;     Model statements for module:  Decide 179
;
393$          BRANCH,        1:
                             If,receiptc1# c4==0,373$,Yes:
                             If,receiptc1# c4==1,394$,Yes:
                             Else,395$,Yes;

;
;
;     Model statements for module:  Separate 47
;
395$          DUPLICATE,     100 - 50:
                             receiptc1# c4-1,3157$,50:NEXT(3156$);

3156$         ASSIGN:        Separate 47.NumberOut Orig=Separate 47.NumberOut Orig + 1:NEXT(394$);

3157$         ASSIGN:        Separate 47.NumberOut Dup=Separate 47.NumberOut Dup + 1:NEXT(394$);


;
;
;     Model statements for module:  Process 52
;
394$          ASSIGN:        Process 52.NumberIn=Process 52.NumberIn + 1:
                             Process 52.WIP=Process 52.WIP+1;
3187$         STACK,         1:Save:NEXT(3161$);

3161$         QUEUE,         Process 52.Queue;
3160$         SEIZE,         2,VA:
                             Resource 40,1:NEXT(3159$);

3159$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c4,23)),,VA:NEXT(3202$);

3202$         ASSIGN:        Process 52.WaitTime=Process 52.WaitTime + Diff.WaitTime;
3166$         TALLY:         Process 52.WaitTimePerEntity,Diff.WaitTime,1;
3168$         TALLY:         Process 52.TotalTimePerEntity,Diff.StartTime,1;
3192$         ASSIGN:        Process 52.VATime=Process 52.VATime + Diff.VATime;
3193$         TALLY:         Process 52.VATimePerEntity,Diff.VATime,1;
3158$         RELEASE:       Resource 40,1;
3207$         STACK,         1:Destroy:NEXT(3206$);

3206$         ASSIGN:        Process 52.NumberOut=Process 52.NumberOut + 1:
                             Process 52.WIP=Process 52.WIP-1:NEXT(370$);


;
;
;     Model statements for module:  Assign 132
;
370$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 138
;
392$          ASSIGN:        receiptc2# c4=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,88)
                             :NEXT(396$);


;
;
;     Model statements for module:  Decide 180
;
396$          BRANCH,        1:
                             If,receiptc2# c4==0,373$,Yes:
                             If,receiptc2# c4==1,397$,Yes:
                             Else,398$,Yes;

;
;
;     Model statements for module:  Separate 48
;
398$          DUPLICATE,     100 - 50:
                             receiptc2# c4-1,3213$,50:NEXT(3212$);

3212$         ASSIGN:        Separate 48.NumberOut Orig=Separate 48.NumberOut Orig + 1:NEXT(397$);

3213$         ASSIGN:        Separate 48.NumberOut Dup=Separate 48.NumberOut Dup + 1:NEXT(397$);


;
;
;     Model statements for module:  Process 53
;
397$          ASSIGN:        Process 53.NumberIn=Process 53.NumberIn + 1:
                             Process 53.WIP=Process 53.WIP+1;
3243$         STACK,         1:Save:NEXT(3217$);

3217$         QUEUE,         Process 53.Queue;
3216$         SEIZE,         2,VA:
                             Resource 41,1:NEXT(3215$);

3215$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c4,24)),,VA:NEXT(3258$);

3258$         ASSIGN:        Process 53.WaitTime=Process 53.WaitTime + Diff.WaitTime;
3222$         TALLY:         Process 53.WaitTimePerEntity,Diff.WaitTime,1;
3224$         TALLY:         Process 53.TotalTimePerEntity,Diff.StartTime,1;
3248$         ASSIGN:        Process 53.VATime=Process 53.VATime + Diff.VATime;
3249$         TALLY:         Process 53.VATimePerEntity,Diff.VATime,1;
3214$         RELEASE:       Resource 41,1;
3263$         STACK,         1:Destroy:NEXT(3262$);

3262$         ASSIGN:        Process 53.NumberOut=Process 53.NumberOut + 1:
                             Process 53.WIP=Process 53.WIP-1:NEXT(370$);


;
;
;     Model statements for module:  Create 63
;

3265$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c4:MinutesToBaseTime(1440):NEXT(3266$);

3266$         ASSIGN:        Create for receiving a shift2 c4.NumberOut=Create for receiving a shift2 c4.NumberOut + 1
                             :NEXT(376$);


;
;
;     Model statements for module:  Decide 173
;
376$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3269$,Yes:
                             Else,3270$,Yes;
3269$         ASSIGN:        Decide 173.NumberOut True=Decide 173.NumberOut True + 1:NEXT(371$);

3270$         ASSIGN:        Decide 173.NumberOut False=Decide 173.NumberOut False + 1:NEXT(377$);


;
;
;     Model statements for module:  Assign 133
;
371$          ASSIGN:        receipta1# c4=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,83)
                             :NEXT(372$);


;
;
;     Model statements for module:  Decide 172
;
372$          BRANCH,        1:
                             If,receipta1# c4==0,373$,Yes:
                             If,receipta1# c4==1,374$,Yes:
                             Else,375$,Yes;

;
;
;     Model statements for module:  Separate 43
;
375$          DUPLICATE,     100 - 50:
                             receipta1# c4-1,3275$,50:NEXT(3274$);

3274$         ASSIGN:        Separate 43.NumberOut Orig=Separate 43.NumberOut Orig + 1:NEXT(374$);

3275$         ASSIGN:        Separate 43.NumberOut Dup=Separate 43.NumberOut Dup + 1:NEXT(374$);


;
;
;     Model statements for module:  Process 48
;
374$          ASSIGN:        Process 48.NumberIn=Process 48.NumberIn + 1:
                             Process 48.WIP=Process 48.WIP+1;
3305$         STACK,         1:Save:NEXT(3279$);

3279$         QUEUE,         Process 48.Queue;
3278$         SEIZE,         2,VA:
                             Resource 36,1:NEXT(3277$);

3277$         DELAY:         HoursToBaseTime(expo(10/receipta1# c4,19)),,VA:NEXT(3320$);

3320$         ASSIGN:        Process 48.WaitTime=Process 48.WaitTime + Diff.WaitTime;
3284$         TALLY:         Process 48.WaitTimePerEntity,Diff.WaitTime,1;
3286$         TALLY:         Process 48.TotalTimePerEntity,Diff.StartTime,1;
3310$         ASSIGN:        Process 48.VATime=Process 48.VATime + Diff.VATime;
3311$         TALLY:         Process 48.VATimePerEntity,Diff.VATime,1;
3276$         RELEASE:       Resource 36,1;
3325$         STACK,         1:Destroy:NEXT(3324$);

3324$         ASSIGN:        Process 48.NumberOut=Process 48.NumberOut + 1:
                             Process 48.WIP=Process 48.WIP-1:NEXT(368$);


;
;
;     Model statements for module:  Assign 130
;
368$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 134
;
377$          ASSIGN:        receipta2# c4=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,84)
                             :NEXT(378$);


;
;
;     Model statements for module:  Decide 174
;
378$          BRANCH,        1:
                             If,receipta2# c4==0,373$,Yes:
                             If,receipta2# c4==1,380$,Yes:
                             Else,379$,Yes;

;
;
;     Model statements for module:  Separate 44
;
379$          DUPLICATE,     100 - 50:
                             receipta2# c4-1,3331$,50:NEXT(3330$);

3330$         ASSIGN:        Separate 44.NumberOut Orig=Separate 44.NumberOut Orig + 1:NEXT(380$);

3331$         ASSIGN:        Separate 44.NumberOut Dup=Separate 44.NumberOut Dup + 1:NEXT(380$);


;
;
;     Model statements for module:  Process 49
;
380$          ASSIGN:        Process 49.NumberIn=Process 49.NumberIn + 1:
                             Process 49.WIP=Process 49.WIP+1;
3361$         STACK,         1:Save:NEXT(3335$);

3335$         QUEUE,         Process 49.Queue;
3334$         SEIZE,         2,VA:
                             Resource 37,1:NEXT(3333$);

3333$         DELAY:         HoursToBaseTime(expo(14/receipta2# c4,20)),,VA:NEXT(3376$);

3376$         ASSIGN:        Process 49.WaitTime=Process 49.WaitTime + Diff.WaitTime;
3340$         TALLY:         Process 49.WaitTimePerEntity,Diff.WaitTime,1;
3342$         TALLY:         Process 49.TotalTimePerEntity,Diff.StartTime,1;
3366$         ASSIGN:        Process 49.VATime=Process 49.VATime + Diff.VATime;
3367$         TALLY:         Process 49.VATimePerEntity,Diff.VATime,1;
3332$         RELEASE:       Resource 37,1;
3381$         STACK,         1:Destroy:NEXT(3380$);

3380$         ASSIGN:        Process 49.NumberOut=Process 49.NumberOut + 1:
                             Process 49.WIP=Process 49.WIP-1:NEXT(368$);


;
;
;     Model statements for module:  Create 64
;

3383$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c4:MinutesToBaseTime(1440):NEXT(3384$);

3384$         ASSIGN:        Create for receiving b shift2 c4.NumberOut=Create for receiving b shift2 c4.NumberOut + 1
                             :NEXT(381$);


;
;
;     Model statements for module:  Create 65
;

3387$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c4:MinutesToBaseTime(1440):NEXT(3388$);

3388$         ASSIGN:        Create for receiving c shift2 c4.NumberOut=Create for receiving c shift2 c4.NumberOut + 1
                             :NEXT(390$);


;
;
;     Model statements for module:  Create 69
;

3391$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c4:MinutesToBaseTime(1440):NEXT(3392$);

3392$         ASSIGN:        Create for shipment b shift1 c4.NumberOut=Create for shipment b shift1 c4.NumberOut + 1:NEXT(412$);


;
;
;     Model statements for module:  Decide 184
;
412$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3395$,Yes:
                             Else,3396$,Yes;
3395$         ASSIGN:        Decide 184.NumberOut True=Decide 184.NumberOut True + 1:NEXT(413$);

3396$         ASSIGN:        Decide 184.NumberOut False=Decide 184.NumberOut False + 1:NEXT(414$);


;
;
;     Model statements for module:  Assign 144
;
413$          ASSIGN:        departureb1# c4=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,115):NEXT(415$);


;
;
;     Model statements for module:  Decide 185
;
415$          BRANCH,        1:
                             If,departureb1# c4==0,406$,Yes:
                             If,departureb1# c4==1,416$,Yes:
                             Else,417$,Yes;

;
;
;     Model statements for module:  Separate 51
;
417$          DUPLICATE,     100 - 50:
                             departureb1# c4-1,3401$,50:NEXT(3400$);

3400$         ASSIGN:        Separate 51.NumberOut Orig=Separate 51.NumberOut Orig + 1:NEXT(416$);

3401$         ASSIGN:        Separate 51.NumberOut Dup=Separate 51.NumberOut Dup + 1:NEXT(416$);


;
;
;     Model statements for module:  Process 56
;
416$          ASSIGN:        Process 56.NumberIn=Process 56.NumberIn + 1:
                             Process 56.WIP=Process 56.WIP+1;
3431$         STACK,         1:Save:NEXT(3405$);

3405$         QUEUE,         Process 56.Queue;
3404$         SEIZE,         2,VA:
                             Resource 44,1:NEXT(3403$);

3403$         DELAY:         HoursToBaseTime(expo(10/departureb1# c4,51)),,VA:NEXT(3446$);

3446$         ASSIGN:        Process 56.WaitTime=Process 56.WaitTime + Diff.WaitTime;
3410$         TALLY:         Process 56.WaitTimePerEntity,Diff.WaitTime,1;
3412$         TALLY:         Process 56.TotalTimePerEntity,Diff.StartTime,1;
3436$         ASSIGN:        Process 56.VATime=Process 56.VATime + Diff.VATime;
3437$         TALLY:         Process 56.VATimePerEntity,Diff.VATime,1;
3402$         RELEASE:       Resource 44,1;
3451$         STACK,         1:Destroy:NEXT(3450$);

3450$         ASSIGN:        Process 56.NumberOut=Process 56.NumberOut + 1:
                             Process 56.WIP=Process 56.WIP-1:NEXT(400$);


;
;
;     Model statements for module:  Assign 140
;
400$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 28
;
406$          ASSIGN:        Dispose 28.NumberOut=Dispose 28.NumberOut + 1;
3453$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 145
;
414$          ASSIGN:        departureb2# c4=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,116)
                             :NEXT(418$);


;
;
;     Model statements for module:  Decide 186
;
418$          BRANCH,        1:
                             If,departureb2# c4==0,406$,Yes:
                             If,departureb2# c4==1,419$,Yes:
                             Else,420$,Yes;

;
;
;     Model statements for module:  Separate 52
;
420$          DUPLICATE,     100 - 50:
                             departureb2# c4-1,3458$,50:NEXT(3457$);

3457$         ASSIGN:        Separate 52.NumberOut Orig=Separate 52.NumberOut Orig + 1:NEXT(419$);

3458$         ASSIGN:        Separate 52.NumberOut Dup=Separate 52.NumberOut Dup + 1:NEXT(419$);


;
;
;     Model statements for module:  Process 57
;
419$          ASSIGN:        Process 57.NumberIn=Process 57.NumberIn + 1:
                             Process 57.WIP=Process 57.WIP+1;
3488$         STACK,         1:Save:NEXT(3462$);

3462$         QUEUE,         Process 57.Queue;
3461$         SEIZE,         2,VA:
                             Resource 45,1:NEXT(3460$);

3460$         DELAY:         HoursToBaseTime(expo(14/departureb2# c4,52)),,VA:NEXT(3503$);

3503$         ASSIGN:        Process 57.WaitTime=Process 57.WaitTime + Diff.WaitTime;
3467$         TALLY:         Process 57.WaitTimePerEntity,Diff.WaitTime,1;
3469$         TALLY:         Process 57.TotalTimePerEntity,Diff.StartTime,1;
3493$         ASSIGN:        Process 57.VATime=Process 57.VATime + Diff.VATime;
3494$         TALLY:         Process 57.VATimePerEntity,Diff.VATime,1;
3459$         RELEASE:       Resource 45,1;
3508$         STACK,         1:Destroy:NEXT(3507$);

3507$         ASSIGN:        Process 57.NumberOut=Process 57.NumberOut + 1:
                             Process 57.WIP=Process 57.WIP-1:NEXT(400$);


;
;
;     Model statements for module:  Create 70
;

3510$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c4:MinutesToBaseTime(1440):NEXT(3511$);

3511$         ASSIGN:        Create for shipment c shift1 c4.NumberOut=Create for shipment c shift1 c4.NumberOut + 1:NEXT(421$);


;
;
;     Model statements for module:  Decide 187
;
421$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3514$,Yes:
                             Else,3515$,Yes;
3514$         ASSIGN:        Decide 187.NumberOut True=Decide 187.NumberOut True + 1:NEXT(422$);

3515$         ASSIGN:        Decide 187.NumberOut False=Decide 187.NumberOut False + 1:NEXT(423$);


;
;
;     Model statements for module:  Assign 146
;
422$          ASSIGN:        departurec1# c4=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,117):NEXT(424$);


;
;
;     Model statements for module:  Decide 188
;
424$          BRANCH,        1:
                             If,departurec1# c4==0,406$,Yes:
                             If,departurec1# c4==1,425$,Yes:
                             Else,426$,Yes;

;
;
;     Model statements for module:  Separate 53
;
426$          DUPLICATE,     100 - 50:
                             departurec1# c4-1,3520$,50:NEXT(3519$);

3519$         ASSIGN:        Separate 53.NumberOut Orig=Separate 53.NumberOut Orig + 1:NEXT(425$);

3520$         ASSIGN:        Separate 53.NumberOut Dup=Separate 53.NumberOut Dup + 1:NEXT(425$);


;
;
;     Model statements for module:  Process 58
;
425$          ASSIGN:        Process 58.NumberIn=Process 58.NumberIn + 1:
                             Process 58.WIP=Process 58.WIP+1;
3550$         STACK,         1:Save:NEXT(3524$);

3524$         QUEUE,         Process 58.Queue;
3523$         SEIZE,         2,VA:
                             Resource 46,1:NEXT(3522$);

3522$         DELAY:         HoursToBaseTime(expo(10/departurec1# c4,53)),,VA:NEXT(3565$);

3565$         ASSIGN:        Process 58.WaitTime=Process 58.WaitTime + Diff.WaitTime;
3529$         TALLY:         Process 58.WaitTimePerEntity,Diff.WaitTime,1;
3531$         TALLY:         Process 58.TotalTimePerEntity,Diff.StartTime,1;
3555$         ASSIGN:        Process 58.VATime=Process 58.VATime + Diff.VATime;
3556$         TALLY:         Process 58.VATimePerEntity,Diff.VATime,1;
3521$         RELEASE:       Resource 46,1;
3570$         STACK,         1:Destroy:NEXT(3569$);

3569$         ASSIGN:        Process 58.NumberOut=Process 58.NumberOut + 1:
                             Process 58.WIP=Process 58.WIP-1:NEXT(401$);


;
;
;     Model statements for module:  Assign 141
;
401$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 147
;
423$          ASSIGN:        departurec2# c4=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,118):NEXT(427$);


;
;
;     Model statements for module:  Decide 189
;
427$          BRANCH,        1:
                             If,departurec2# c4==0,406$,Yes:
                             If,departurec2# c4==1,428$,Yes:
                             Else,429$,Yes;

;
;
;     Model statements for module:  Separate 54
;
429$          DUPLICATE,     100 - 50:
                             departurec2# c4-1,3576$,50:NEXT(3575$);

3575$         ASSIGN:        Separate 54.NumberOut Orig=Separate 54.NumberOut Orig + 1:NEXT(428$);

3576$         ASSIGN:        Separate 54.NumberOut Dup=Separate 54.NumberOut Dup + 1:NEXT(428$);


;
;
;     Model statements for module:  Process 59
;
428$          ASSIGN:        Process 59.NumberIn=Process 59.NumberIn + 1:
                             Process 59.WIP=Process 59.WIP+1;
3606$         STACK,         1:Save:NEXT(3580$);

3580$         QUEUE,         Process 59.Queue;
3579$         SEIZE,         2,VA:
                             Resource 47,1:NEXT(3578$);

3578$         DELAY:         HoursToBaseTime(expo(14/departurec2# c4,54)),,VA:NEXT(3621$);

3621$         ASSIGN:        Process 59.WaitTime=Process 59.WaitTime + Diff.WaitTime;
3585$         TALLY:         Process 59.WaitTimePerEntity,Diff.WaitTime,1;
3587$         TALLY:         Process 59.TotalTimePerEntity,Diff.StartTime,1;
3611$         ASSIGN:        Process 59.VATime=Process 59.VATime + Diff.VATime;
3612$         TALLY:         Process 59.VATimePerEntity,Diff.VATime,1;
3577$         RELEASE:       Resource 47,1;
3626$         STACK,         1:Destroy:NEXT(3625$);

3625$         ASSIGN:        Process 59.NumberOut=Process 59.NumberOut + 1:
                             Process 59.WIP=Process 59.WIP-1:NEXT(401$);


;
;
;     Model statements for module:  Create 72
;

3628$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c4:MinutesToBaseTime(1440):NEXT(3629$);

3629$         ASSIGN:        Create for shipmenta shift2 c4.NumberOut=Create for shipmenta shift2 c4.NumberOut + 1:NEXT(403$);


;
;
;     Model statements for module:  Decide 181
;
403$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3632$,Yes:
                             Else,3633$,Yes;
3632$         ASSIGN:        Decide 181.NumberOut True=Decide 181.NumberOut True + 1:NEXT(402$);

3633$         ASSIGN:        Decide 181.NumberOut False=Decide 181.NumberOut False + 1:NEXT(404$);


;
;
;     Model statements for module:  Assign 142
;
402$          ASSIGN:        departurea1# c4=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,113):NEXT(405$);


;
;
;     Model statements for module:  Decide 182
;
405$          BRANCH,        1:
                             If,departurea1# c4==0,406$,Yes:
                             If,departurea1# c4==1,407$,Yes:
                             Else,408$,Yes;

;
;
;     Model statements for module:  Separate 49
;
408$          DUPLICATE,     100 - 50:
                             departurea1# c4-1,3638$,50:NEXT(3637$);

3637$         ASSIGN:        Separate 49.NumberOut Orig=Separate 49.NumberOut Orig + 1:NEXT(407$);

3638$         ASSIGN:        Separate 49.NumberOut Dup=Separate 49.NumberOut Dup + 1:NEXT(407$);


;
;
;     Model statements for module:  Process 54
;
407$          ASSIGN:        Process 54.NumberIn=Process 54.NumberIn + 1:
                             Process 54.WIP=Process 54.WIP+1;
3668$         STACK,         1:Save:NEXT(3642$);

3642$         QUEUE,         Process 54.Queue;
3641$         SEIZE,         2,VA:
                             Resource 42,1:NEXT(3640$);

3640$         DELAY:         HoursToBaseTime(expo(10/departurea1# c4,49)),,VA:NEXT(3683$);

3683$         ASSIGN:        Process 54.WaitTime=Process 54.WaitTime + Diff.WaitTime;
3647$         TALLY:         Process 54.WaitTimePerEntity,Diff.WaitTime,1;
3649$         TALLY:         Process 54.TotalTimePerEntity,Diff.StartTime,1;
3673$         ASSIGN:        Process 54.VATime=Process 54.VATime + Diff.VATime;
3674$         TALLY:         Process 54.VATimePerEntity,Diff.VATime,1;
3639$         RELEASE:       Resource 42,1;
3688$         STACK,         1:Destroy:NEXT(3687$);

3687$         ASSIGN:        Process 54.NumberOut=Process 54.NumberOut + 1:
                             Process 54.WIP=Process 54.WIP-1:NEXT(399$);


;
;
;     Model statements for module:  Assign 139
;
399$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 143
;
404$          ASSIGN:        departurea2# c4=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,114):NEXT(409$);


;
;
;     Model statements for module:  Decide 183
;
409$          BRANCH,        1:
                             If,departurea2# c4==0,406$,Yes:
                             If,departurea2# c4==1,411$,Yes:
                             Else,410$,Yes;

;
;
;     Model statements for module:  Separate 50
;
410$          DUPLICATE,     100 - 50:
                             departurea2# c4-1,3694$,50:NEXT(3693$);

3693$         ASSIGN:        Separate 50.NumberOut Orig=Separate 50.NumberOut Orig + 1:NEXT(411$);

3694$         ASSIGN:        Separate 50.NumberOut Dup=Separate 50.NumberOut Dup + 1:NEXT(411$);


;
;
;     Model statements for module:  Process 55
;
411$          ASSIGN:        Process 55.NumberIn=Process 55.NumberIn + 1:
                             Process 55.WIP=Process 55.WIP+1;
3724$         STACK,         1:Save:NEXT(3698$);

3698$         QUEUE,         Process 55.Queue;
3697$         SEIZE,         2,VA:
                             Resource 43,1:NEXT(3696$);

3696$         DELAY:         HoursToBaseTime(expo(14/departurea2# c4,50)),,VA:NEXT(3739$);

3739$         ASSIGN:        Process 55.WaitTime=Process 55.WaitTime + Diff.WaitTime;
3703$         TALLY:         Process 55.WaitTimePerEntity,Diff.WaitTime,1;
3705$         TALLY:         Process 55.TotalTimePerEntity,Diff.StartTime,1;
3729$         ASSIGN:        Process 55.VATime=Process 55.VATime + Diff.VATime;
3730$         TALLY:         Process 55.VATimePerEntity,Diff.VATime,1;
3695$         RELEASE:       Resource 43,1;
3744$         STACK,         1:Destroy:NEXT(3743$);

3743$         ASSIGN:        Process 55.NumberOut=Process 55.NumberOut + 1:
                             Process 55.WIP=Process 55.WIP-1:NEXT(399$);


;
;
;     Model statements for module:  Create 73
;

3746$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c4:MinutesToBaseTime(1440):NEXT(3747$);

3747$         ASSIGN:        Create for shipment b shift2 c4.NumberOut=Create for shipment b shift2 c4.NumberOut + 1:NEXT(412$);


;
;
;     Model statements for module:  Create 84
;

3750$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c5:MinutesToBaseTime(1440):NEXT(3751$);

3751$         ASSIGN:        Create for receiving b shift1 c5.NumberOut=Create for receiving b shift1 c5.NumberOut + 1
                             :NEXT(443$);


;
;
;     Model statements for module:  Decide 202
;
443$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3754$,Yes:
                             Else,3755$,Yes;
3754$         ASSIGN:        Decide 202.NumberOut True=Decide 202.NumberOut True + 1:NEXT(444$);

3755$         ASSIGN:        Decide 202.NumberOut False=Decide 202.NumberOut False + 1:NEXT(445$);


;
;
;     Model statements for module:  Assign 162
;
444$          ASSIGN:        receiptb1# c5=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,91)
                             :NEXT(446$);


;
;
;     Model statements for module:  Decide 203
;
446$          BRANCH,        1:
                             If,receiptb1# c5==0,435$,Yes:
                             If,receiptb1# c5==1,447$,Yes:
                             Else,448$,Yes;

;
;
;     Model statements for module:  Separate 63
;
448$          DUPLICATE,     100 - 50:
                             receiptb1# c5-1,3760$,50:NEXT(3759$);

3759$         ASSIGN:        Separate 63.NumberOut Orig=Separate 63.NumberOut Orig + 1:NEXT(447$);

3760$         ASSIGN:        Separate 63.NumberOut Dup=Separate 63.NumberOut Dup + 1:NEXT(447$);


;
;
;     Model statements for module:  Process 68
;
447$          ASSIGN:        Process 68.NumberIn=Process 68.NumberIn + 1:
                             Process 68.WIP=Process 68.WIP+1;
3790$         STACK,         1:Save:NEXT(3764$);

3764$         QUEUE,         Process 68.Queue;
3763$         SEIZE,         2,VA:
                             Resource 50,1:NEXT(3762$);

3762$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c5,27)),,VA:NEXT(3805$);

3805$         ASSIGN:        Process 68.WaitTime=Process 68.WaitTime + Diff.WaitTime;
3769$         TALLY:         Process 68.WaitTimePerEntity,Diff.WaitTime,1;
3771$         TALLY:         Process 68.TotalTimePerEntity,Diff.StartTime,1;
3795$         ASSIGN:        Process 68.VATime=Process 68.VATime + Diff.VATime;
3796$         TALLY:         Process 68.VATimePerEntity,Diff.VATime,1;
3761$         RELEASE:       Resource 50,1;
3810$         STACK,         1:Destroy:NEXT(3809$);

3809$         ASSIGN:        Process 68.NumberOut=Process 68.NumberOut + 1:
                             Process 68.WIP=Process 68.WIP-1:NEXT(431$);


;
;
;     Model statements for module:  Assign 158
;
431$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 30
;
435$          ASSIGN:        Dispose 30.NumberOut=Dispose 30.NumberOut + 1;
3812$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 163
;
445$          ASSIGN:        receiptb2# c5=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,92)
                             :NEXT(449$);


;
;
;     Model statements for module:  Decide 204
;
449$          BRANCH,        1:
                             If,receiptb2# c5==0,435$,Yes:
                             If,receiptb2# c5==1,450$,Yes:
                             Else,451$,Yes;

;
;
;     Model statements for module:  Separate 64
;
451$          DUPLICATE,     100 - 50:
                             receiptb2# c5-1,3817$,50:NEXT(3816$);

3816$         ASSIGN:        Separate 64.NumberOut Orig=Separate 64.NumberOut Orig + 1:NEXT(450$);

3817$         ASSIGN:        Separate 64.NumberOut Dup=Separate 64.NumberOut Dup + 1:NEXT(450$);


;
;
;     Model statements for module:  Process 69
;
450$          ASSIGN:        Process 69.NumberIn=Process 69.NumberIn + 1:
                             Process 69.WIP=Process 69.WIP+1;
3847$         STACK,         1:Save:NEXT(3821$);

3821$         QUEUE,         Process 69.Queue;
3820$         SEIZE,         2,VA:
                             Resource 51,1:NEXT(3819$);

3819$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c5,28)),,VA:NEXT(3862$);

3862$         ASSIGN:        Process 69.WaitTime=Process 69.WaitTime + Diff.WaitTime;
3826$         TALLY:         Process 69.WaitTimePerEntity,Diff.WaitTime,1;
3828$         TALLY:         Process 69.TotalTimePerEntity,Diff.StartTime,1;
3852$         ASSIGN:        Process 69.VATime=Process 69.VATime + Diff.VATime;
3853$         TALLY:         Process 69.VATimePerEntity,Diff.VATime,1;
3818$         RELEASE:       Resource 51,1;
3867$         STACK,         1:Destroy:NEXT(3866$);

3866$         ASSIGN:        Process 69.NumberOut=Process 69.NumberOut + 1:
                             Process 69.WIP=Process 69.WIP-1:NEXT(431$);


;
;
;     Model statements for module:  Create 85
;

3869$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c5:MinutesToBaseTime(1440):NEXT(3870$);

3870$         ASSIGN:        Create for receiving c shift1 c5.NumberOut=Create for receiving c shift1 c5.NumberOut + 1
                             :NEXT(452$);


;
;
;     Model statements for module:  Decide 205
;
452$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3873$,Yes:
                             Else,3874$,Yes;
3873$         ASSIGN:        Decide 205.NumberOut True=Decide 205.NumberOut True + 1:NEXT(453$);

3874$         ASSIGN:        Decide 205.NumberOut False=Decide 205.NumberOut False + 1:NEXT(454$);


;
;
;     Model statements for module:  Assign 164
;
453$          ASSIGN:        receiptc1# c5=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,93)
                             :NEXT(455$);


;
;
;     Model statements for module:  Decide 206
;
455$          BRANCH,        1:
                             If,receiptc1# c5==0,435$,Yes:
                             If,receiptc1# c5==1,456$,Yes:
                             Else,457$,Yes;

;
;
;     Model statements for module:  Separate 65
;
457$          DUPLICATE,     100 - 50:
                             receiptc1# c5-1,3879$,50:NEXT(3878$);

3878$         ASSIGN:        Separate 65.NumberOut Orig=Separate 65.NumberOut Orig + 1:NEXT(456$);

3879$         ASSIGN:        Separate 65.NumberOut Dup=Separate 65.NumberOut Dup + 1:NEXT(456$);


;
;
;     Model statements for module:  Process 70
;
456$          ASSIGN:        Process 70.NumberIn=Process 70.NumberIn + 1:
                             Process 70.WIP=Process 70.WIP+1;
3909$         STACK,         1:Save:NEXT(3883$);

3883$         QUEUE,         Process 70.Queue;
3882$         SEIZE,         2,VA:
                             Resource 52,1:NEXT(3881$);

3881$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c5,29)),,VA:NEXT(3924$);

3924$         ASSIGN:        Process 70.WaitTime=Process 70.WaitTime + Diff.WaitTime;
3888$         TALLY:         Process 70.WaitTimePerEntity,Diff.WaitTime,1;
3890$         TALLY:         Process 70.TotalTimePerEntity,Diff.StartTime,1;
3914$         ASSIGN:        Process 70.VATime=Process 70.VATime + Diff.VATime;
3915$         TALLY:         Process 70.VATimePerEntity,Diff.VATime,1;
3880$         RELEASE:       Resource 52,1;
3929$         STACK,         1:Destroy:NEXT(3928$);

3928$         ASSIGN:        Process 70.NumberOut=Process 70.NumberOut + 1:
                             Process 70.WIP=Process 70.WIP-1:NEXT(432$);


;
;
;     Model statements for module:  Assign 159
;
432$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 165
;
454$          ASSIGN:        receiptc2# c5=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,94)
                             :NEXT(458$);


;
;
;     Model statements for module:  Decide 207
;
458$          BRANCH,        1:
                             If,receiptc2# c5==0,435$,Yes:
                             If,receiptc2# c5==1,459$,Yes:
                             Else,460$,Yes;

;
;
;     Model statements for module:  Separate 66
;
460$          DUPLICATE,     100 - 50:
                             receiptc2# c5-1,3935$,50:NEXT(3934$);

3934$         ASSIGN:        Separate 66.NumberOut Orig=Separate 66.NumberOut Orig + 1:NEXT(459$);

3935$         ASSIGN:        Separate 66.NumberOut Dup=Separate 66.NumberOut Dup + 1:NEXT(459$);


;
;
;     Model statements for module:  Process 71
;
459$          ASSIGN:        Process 71.NumberIn=Process 71.NumberIn + 1:
                             Process 71.WIP=Process 71.WIP+1;
3965$         STACK,         1:Save:NEXT(3939$);

3939$         QUEUE,         Process 71.Queue;
3938$         SEIZE,         2,VA:
                             Resource 53,1:NEXT(3937$);

3937$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c5,30)),,VA:NEXT(3980$);

3980$         ASSIGN:        Process 71.WaitTime=Process 71.WaitTime + Diff.WaitTime;
3944$         TALLY:         Process 71.WaitTimePerEntity,Diff.WaitTime,1;
3946$         TALLY:         Process 71.TotalTimePerEntity,Diff.StartTime,1;
3970$         ASSIGN:        Process 71.VATime=Process 71.VATime + Diff.VATime;
3971$         TALLY:         Process 71.VATimePerEntity,Diff.VATime,1;
3936$         RELEASE:       Resource 53,1;
3985$         STACK,         1:Destroy:NEXT(3984$);

3984$         ASSIGN:        Process 71.NumberOut=Process 71.NumberOut + 1:
                             Process 71.WIP=Process 71.WIP-1:NEXT(432$);


;
;
;     Model statements for module:  Create 87
;

3987$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c5:MinutesToBaseTime(1440):NEXT(3988$);

3988$         ASSIGN:        Create for receiving a shift2 c5.NumberOut=Create for receiving a shift2 c5.NumberOut + 1
                             :NEXT(438$);


;
;
;     Model statements for module:  Decide 200
;
438$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3991$,Yes:
                             Else,3992$,Yes;
3991$         ASSIGN:        Decide 200.NumberOut True=Decide 200.NumberOut True + 1:NEXT(433$);

3992$         ASSIGN:        Decide 200.NumberOut False=Decide 200.NumberOut False + 1:NEXT(439$);


;
;
;     Model statements for module:  Assign 160
;
433$          ASSIGN:        receipta1# c5=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,89)
                             :NEXT(434$);


;
;
;     Model statements for module:  Decide 199
;
434$          BRANCH,        1:
                             If,receipta1# c5==0,435$,Yes:
                             If,receipta1# c5==1,436$,Yes:
                             Else,437$,Yes;

;
;
;     Model statements for module:  Separate 61
;
437$          DUPLICATE,     100 - 50:
                             receipta1# c5-1,3997$,50:NEXT(3996$);

3996$         ASSIGN:        Separate 61.NumberOut Orig=Separate 61.NumberOut Orig + 1:NEXT(436$);

3997$         ASSIGN:        Separate 61.NumberOut Dup=Separate 61.NumberOut Dup + 1:NEXT(436$);


;
;
;     Model statements for module:  Process 66
;
436$          ASSIGN:        Process 66.NumberIn=Process 66.NumberIn + 1:
                             Process 66.WIP=Process 66.WIP+1;
4027$         STACK,         1:Save:NEXT(4001$);

4001$         QUEUE,         Process 66.Queue;
4000$         SEIZE,         2,VA:
                             Resource 48,1:NEXT(3999$);

3999$         DELAY:         HoursToBaseTime(expo(10/receipta1# c5,25)),,VA:NEXT(4042$);

4042$         ASSIGN:        Process 66.WaitTime=Process 66.WaitTime + Diff.WaitTime;
4006$         TALLY:         Process 66.WaitTimePerEntity,Diff.WaitTime,1;
4008$         TALLY:         Process 66.TotalTimePerEntity,Diff.StartTime,1;
4032$         ASSIGN:        Process 66.VATime=Process 66.VATime + Diff.VATime;
4033$         TALLY:         Process 66.VATimePerEntity,Diff.VATime,1;
3998$         RELEASE:       Resource 48,1;
4047$         STACK,         1:Destroy:NEXT(4046$);

4046$         ASSIGN:        Process 66.NumberOut=Process 66.NumberOut + 1:
                             Process 66.WIP=Process 66.WIP-1:NEXT(430$);


;
;
;     Model statements for module:  Assign 157
;
430$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 161
;
439$          ASSIGN:        receipta2# c5=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,90)
                             :NEXT(440$);


;
;
;     Model statements for module:  Decide 201
;
440$          BRANCH,        1:
                             If,receipta2# c5==0,435$,Yes:
                             If,receipta2# c5==1,442$,Yes:
                             Else,441$,Yes;

;
;
;     Model statements for module:  Separate 62
;
441$          DUPLICATE,     100 - 50:
                             receipta2# c5-1,4053$,50:NEXT(4052$);

4052$         ASSIGN:        Separate 62.NumberOut Orig=Separate 62.NumberOut Orig + 1:NEXT(442$);

4053$         ASSIGN:        Separate 62.NumberOut Dup=Separate 62.NumberOut Dup + 1:NEXT(442$);


;
;
;     Model statements for module:  Process 67
;
442$          ASSIGN:        Process 67.NumberIn=Process 67.NumberIn + 1:
                             Process 67.WIP=Process 67.WIP+1;
4083$         STACK,         1:Save:NEXT(4057$);

4057$         QUEUE,         Process 67.Queue;
4056$         SEIZE,         2,VA:
                             Resource 49,1:NEXT(4055$);

4055$         DELAY:         HoursToBaseTime(expo(14/receipta2# c5,26)),,VA:NEXT(4098$);

4098$         ASSIGN:        Process 67.WaitTime=Process 67.WaitTime + Diff.WaitTime;
4062$         TALLY:         Process 67.WaitTimePerEntity,Diff.WaitTime,1;
4064$         TALLY:         Process 67.TotalTimePerEntity,Diff.StartTime,1;
4088$         ASSIGN:        Process 67.VATime=Process 67.VATime + Diff.VATime;
4089$         TALLY:         Process 67.VATimePerEntity,Diff.VATime,1;
4054$         RELEASE:       Resource 49,1;
4103$         STACK,         1:Destroy:NEXT(4102$);

4102$         ASSIGN:        Process 67.NumberOut=Process 67.NumberOut + 1:
                             Process 67.WIP=Process 67.WIP-1:NEXT(430$);


;
;
;     Model statements for module:  Create 88
;

4105$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c5:MinutesToBaseTime(1440):NEXT(4106$);

4106$         ASSIGN:        Create for receiving b shift2 c5.NumberOut=Create for receiving b shift2 c5.NumberOut + 1
                             :NEXT(443$);


;
;
;     Model statements for module:  Create 89
;

4109$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c5:MinutesToBaseTime(1440):NEXT(4110$);

4110$         ASSIGN:        Create for receiving c shift2 c5.NumberOut=Create for receiving c shift2 c5.NumberOut + 1
                             :NEXT(452$);


;
;
;     Model statements for module:  Create 93
;

4113$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c5:MinutesToBaseTime(1440):NEXT(4114$);

4114$         ASSIGN:        Create for shipment b shift1 c5.NumberOut=Create for shipment b shift1 c5.NumberOut + 1:NEXT(474$);


;
;
;     Model statements for module:  Decide 211
;
474$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4117$,Yes:
                             Else,4118$,Yes;
4117$         ASSIGN:        Decide 211.NumberOut True=Decide 211.NumberOut True + 1:NEXT(475$);

4118$         ASSIGN:        Decide 211.NumberOut False=Decide 211.NumberOut False + 1:NEXT(476$);


;
;
;     Model statements for module:  Assign 171
;
475$          ASSIGN:        departureb1# c5=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,121):NEXT(477$);


;
;
;     Model statements for module:  Decide 212
;
477$          BRANCH,        1:
                             If,departureb1# c5==0,468$,Yes:
                             If,departureb1# c5==1,478$,Yes:
                             Else,479$,Yes;

;
;
;     Model statements for module:  Separate 69
;
479$          DUPLICATE,     100 - 50:
                             departureb1# c5-1,4123$,50:NEXT(4122$);

4122$         ASSIGN:        Separate 69.NumberOut Orig=Separate 69.NumberOut Orig + 1:NEXT(478$);

4123$         ASSIGN:        Separate 69.NumberOut Dup=Separate 69.NumberOut Dup + 1:NEXT(478$);


;
;
;     Model statements for module:  Process 74
;
478$          ASSIGN:        Process 74.NumberIn=Process 74.NumberIn + 1:
                             Process 74.WIP=Process 74.WIP+1;
4153$         STACK,         1:Save:NEXT(4127$);

4127$         QUEUE,         Process 74.Queue;
4126$         SEIZE,         2,VA:
                             Resource 56,1:NEXT(4125$);

4125$         DELAY:         HoursToBaseTime(expo(10/departureb1# c5,57)),,VA:NEXT(4168$);

4168$         ASSIGN:        Process 74.WaitTime=Process 74.WaitTime + Diff.WaitTime;
4132$         TALLY:         Process 74.WaitTimePerEntity,Diff.WaitTime,1;
4134$         TALLY:         Process 74.TotalTimePerEntity,Diff.StartTime,1;
4158$         ASSIGN:        Process 74.VATime=Process 74.VATime + Diff.VATime;
4159$         TALLY:         Process 74.VATimePerEntity,Diff.VATime,1;
4124$         RELEASE:       Resource 56,1;
4173$         STACK,         1:Destroy:NEXT(4172$);

4172$         ASSIGN:        Process 74.NumberOut=Process 74.NumberOut + 1:
                             Process 74.WIP=Process 74.WIP-1:NEXT(462$);


;
;
;     Model statements for module:  Assign 167
;
462$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 31
;
468$          ASSIGN:        Dispose 31.NumberOut=Dispose 31.NumberOut + 1;
4175$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 172
;
476$          ASSIGN:        departureb2# c5=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,122)
                             :NEXT(480$);


;
;
;     Model statements for module:  Decide 213
;
480$          BRANCH,        1:
                             If,departureb2# c5==0,468$,Yes:
                             If,departureb2# c5==1,481$,Yes:
                             Else,482$,Yes;

;
;
;     Model statements for module:  Separate 70
;
482$          DUPLICATE,     100 - 50:
                             departureb2# c5-1,4180$,50:NEXT(4179$);

4179$         ASSIGN:        Separate 70.NumberOut Orig=Separate 70.NumberOut Orig + 1:NEXT(481$);

4180$         ASSIGN:        Separate 70.NumberOut Dup=Separate 70.NumberOut Dup + 1:NEXT(481$);


;
;
;     Model statements for module:  Process 75
;
481$          ASSIGN:        Process 75.NumberIn=Process 75.NumberIn + 1:
                             Process 75.WIP=Process 75.WIP+1;
4210$         STACK,         1:Save:NEXT(4184$);

4184$         QUEUE,         Process 75.Queue;
4183$         SEIZE,         2,VA:
                             Resource 57,1:NEXT(4182$);

4182$         DELAY:         HoursToBaseTime(expo(14/departureb2# c5,58)),,VA:NEXT(4225$);

4225$         ASSIGN:        Process 75.WaitTime=Process 75.WaitTime + Diff.WaitTime;
4189$         TALLY:         Process 75.WaitTimePerEntity,Diff.WaitTime,1;
4191$         TALLY:         Process 75.TotalTimePerEntity,Diff.StartTime,1;
4215$         ASSIGN:        Process 75.VATime=Process 75.VATime + Diff.VATime;
4216$         TALLY:         Process 75.VATimePerEntity,Diff.VATime,1;
4181$         RELEASE:       Resource 57,1;
4230$         STACK,         1:Destroy:NEXT(4229$);

4229$         ASSIGN:        Process 75.NumberOut=Process 75.NumberOut + 1:
                             Process 75.WIP=Process 75.WIP-1:NEXT(462$);


;
;
;     Model statements for module:  Create 94
;

4232$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c5:MinutesToBaseTime(1440):NEXT(4233$);

4233$         ASSIGN:        Create for shipment c shift1 c5.NumberOut=Create for shipment c shift1 c5.NumberOut + 1:NEXT(483$);


;
;
;     Model statements for module:  Decide 214
;
483$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4236$,Yes:
                             Else,4237$,Yes;
4236$         ASSIGN:        Decide 214.NumberOut True=Decide 214.NumberOut True + 1:NEXT(484$);

4237$         ASSIGN:        Decide 214.NumberOut False=Decide 214.NumberOut False + 1:NEXT(485$);


;
;
;     Model statements for module:  Assign 173
;
484$          ASSIGN:        departurec1# c5=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,123):NEXT(486$);


;
;
;     Model statements for module:  Decide 215
;
486$          BRANCH,        1:
                             If,departurec1# c5==0,468$,Yes:
                             If,departurec1# c5==1,487$,Yes:
                             Else,488$,Yes;

;
;
;     Model statements for module:  Separate 71
;
488$          DUPLICATE,     100 - 50:
                             departurec1# c5-1,4242$,50:NEXT(4241$);

4241$         ASSIGN:        Separate 71.NumberOut Orig=Separate 71.NumberOut Orig + 1:NEXT(487$);

4242$         ASSIGN:        Separate 71.NumberOut Dup=Separate 71.NumberOut Dup + 1:NEXT(487$);


;
;
;     Model statements for module:  Process 76
;
487$          ASSIGN:        Process 76.NumberIn=Process 76.NumberIn + 1:
                             Process 76.WIP=Process 76.WIP+1;
4272$         STACK,         1:Save:NEXT(4246$);

4246$         QUEUE,         Process 76.Queue;
4245$         SEIZE,         2,VA:
                             Resource 58,1:NEXT(4244$);

4244$         DELAY:         HoursToBaseTime(expo(10/departurec1# c5,59)),,VA:NEXT(4287$);

4287$         ASSIGN:        Process 76.WaitTime=Process 76.WaitTime + Diff.WaitTime;
4251$         TALLY:         Process 76.WaitTimePerEntity,Diff.WaitTime,1;
4253$         TALLY:         Process 76.TotalTimePerEntity,Diff.StartTime,1;
4277$         ASSIGN:        Process 76.VATime=Process 76.VATime + Diff.VATime;
4278$         TALLY:         Process 76.VATimePerEntity,Diff.VATime,1;
4243$         RELEASE:       Resource 58,1;
4292$         STACK,         1:Destroy:NEXT(4291$);

4291$         ASSIGN:        Process 76.NumberOut=Process 76.NumberOut + 1:
                             Process 76.WIP=Process 76.WIP-1:NEXT(463$);


;
;
;     Model statements for module:  Assign 168
;
463$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 174
;
485$          ASSIGN:        departurec2# c5=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,124):NEXT(489$);


;
;
;     Model statements for module:  Decide 216
;
489$          BRANCH,        1:
                             If,departurec2# c5==0,468$,Yes:
                             If,departurec2# c5==1,490$,Yes:
                             Else,491$,Yes;

;
;
;     Model statements for module:  Separate 72
;
491$          DUPLICATE,     100 - 50:
                             departurec2# c5-1,4298$,50:NEXT(4297$);

4297$         ASSIGN:        Separate 72.NumberOut Orig=Separate 72.NumberOut Orig + 1:NEXT(490$);

4298$         ASSIGN:        Separate 72.NumberOut Dup=Separate 72.NumberOut Dup + 1:NEXT(490$);


;
;
;     Model statements for module:  Process 77
;
490$          ASSIGN:        Process 77.NumberIn=Process 77.NumberIn + 1:
                             Process 77.WIP=Process 77.WIP+1;
4328$         STACK,         1:Save:NEXT(4302$);

4302$         QUEUE,         Process 77.Queue;
4301$         SEIZE,         2,VA:
                             Resource 59,1:NEXT(4300$);

4300$         DELAY:         HoursToBaseTime(expo(14/departurec2# c5,60)),,VA:NEXT(4343$);

4343$         ASSIGN:        Process 77.WaitTime=Process 77.WaitTime + Diff.WaitTime;
4307$         TALLY:         Process 77.WaitTimePerEntity,Diff.WaitTime,1;
4309$         TALLY:         Process 77.TotalTimePerEntity,Diff.StartTime,1;
4333$         ASSIGN:        Process 77.VATime=Process 77.VATime + Diff.VATime;
4334$         TALLY:         Process 77.VATimePerEntity,Diff.VATime,1;
4299$         RELEASE:       Resource 59,1;
4348$         STACK,         1:Destroy:NEXT(4347$);

4347$         ASSIGN:        Process 77.NumberOut=Process 77.NumberOut + 1:
                             Process 77.WIP=Process 77.WIP-1:NEXT(463$);


;
;
;     Model statements for module:  Create 96
;

4350$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c5:MinutesToBaseTime(1440):NEXT(4351$);

4351$         ASSIGN:        Create for shipmenta shift2 c5.NumberOut=Create for shipmenta shift2 c5.NumberOut + 1:NEXT(465$);


;
;
;     Model statements for module:  Decide 208
;
465$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4354$,Yes:
                             Else,4355$,Yes;
4354$         ASSIGN:        Decide 208.NumberOut True=Decide 208.NumberOut True + 1:NEXT(464$);

4355$         ASSIGN:        Decide 208.NumberOut False=Decide 208.NumberOut False + 1:NEXT(466$);


;
;
;     Model statements for module:  Assign 169
;
464$          ASSIGN:        departurea1# c5=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,119):NEXT(467$);


;
;
;     Model statements for module:  Decide 209
;
467$          BRANCH,        1:
                             If,departurea1# c5==0,468$,Yes:
                             If,departurea1# c5==1,469$,Yes:
                             Else,470$,Yes;

;
;
;     Model statements for module:  Separate 67
;
470$          DUPLICATE,     100 - 50:
                             departurea1# c5-1,4360$,50:NEXT(4359$);

4359$         ASSIGN:        Separate 67.NumberOut Orig=Separate 67.NumberOut Orig + 1:NEXT(469$);

4360$         ASSIGN:        Separate 67.NumberOut Dup=Separate 67.NumberOut Dup + 1:NEXT(469$);


;
;
;     Model statements for module:  Process 72
;
469$          ASSIGN:        Process 72.NumberIn=Process 72.NumberIn + 1:
                             Process 72.WIP=Process 72.WIP+1;
4390$         STACK,         1:Save:NEXT(4364$);

4364$         QUEUE,         Process 72.Queue;
4363$         SEIZE,         2,VA:
                             Resource 54,1:NEXT(4362$);

4362$         DELAY:         HoursToBaseTime(expo(10/departurea1# c5,55)),,VA:NEXT(4405$);

4405$         ASSIGN:        Process 72.WaitTime=Process 72.WaitTime + Diff.WaitTime;
4369$         TALLY:         Process 72.WaitTimePerEntity,Diff.WaitTime,1;
4371$         TALLY:         Process 72.TotalTimePerEntity,Diff.StartTime,1;
4395$         ASSIGN:        Process 72.VATime=Process 72.VATime + Diff.VATime;
4396$         TALLY:         Process 72.VATimePerEntity,Diff.VATime,1;
4361$         RELEASE:       Resource 54,1;
4410$         STACK,         1:Destroy:NEXT(4409$);

4409$         ASSIGN:        Process 72.NumberOut=Process 72.NumberOut + 1:
                             Process 72.WIP=Process 72.WIP-1:NEXT(461$);


;
;
;     Model statements for module:  Assign 166
;
461$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 170
;
466$          ASSIGN:        departurea2# c5=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,120):NEXT(471$);


;
;
;     Model statements for module:  Decide 210
;
471$          BRANCH,        1:
                             If,departurea2# c5==0,468$,Yes:
                             If,departurea2# c5==1,473$,Yes:
                             Else,472$,Yes;

;
;
;     Model statements for module:  Separate 68
;
472$          DUPLICATE,     100 - 50:
                             departurea2# c5-1,4416$,50:NEXT(4415$);

4415$         ASSIGN:        Separate 68.NumberOut Orig=Separate 68.NumberOut Orig + 1:NEXT(473$);

4416$         ASSIGN:        Separate 68.NumberOut Dup=Separate 68.NumberOut Dup + 1:NEXT(473$);


;
;
;     Model statements for module:  Process 73
;
473$          ASSIGN:        Process 73.NumberIn=Process 73.NumberIn + 1:
                             Process 73.WIP=Process 73.WIP+1;
4446$         STACK,         1:Save:NEXT(4420$);

4420$         QUEUE,         Process 73.Queue;
4419$         SEIZE,         2,VA:
                             Resource 55,1:NEXT(4418$);

4418$         DELAY:         HoursToBaseTime(expo(14/departurea2# c5,56)),,VA:NEXT(4461$);

4461$         ASSIGN:        Process 73.WaitTime=Process 73.WaitTime + Diff.WaitTime;
4425$         TALLY:         Process 73.WaitTimePerEntity,Diff.WaitTime,1;
4427$         TALLY:         Process 73.TotalTimePerEntity,Diff.StartTime,1;
4451$         ASSIGN:        Process 73.VATime=Process 73.VATime + Diff.VATime;
4452$         TALLY:         Process 73.VATimePerEntity,Diff.VATime,1;
4417$         RELEASE:       Resource 55,1;
4466$         STACK,         1:Destroy:NEXT(4465$);

4465$         ASSIGN:        Process 73.NumberOut=Process 73.NumberOut + 1:
                             Process 73.WIP=Process 73.WIP-1:NEXT(461$);


;
;
;     Model statements for module:  Create 97
;

4468$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c5:MinutesToBaseTime(1440):NEXT(4469$);

4469$         ASSIGN:        Create for shipment b shift2 c5.NumberOut=Create for shipment b shift2 c5.NumberOut + 1:NEXT(474$);


;
;
;     Model statements for module:  Create 99
;

4472$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c2:MinutesToBaseTime(1440):NEXT(4473$);

4473$         ASSIGN:        Create for receiving a shift1 c2.NumberOut=Create for receiving a shift1 c2.NumberOut + 1
                             :NEXT(243$);


;
;
;     Model statements for module:  Create 100
;

4476$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c1:MinutesToBaseTime(1440):NEXT(4477$);

4477$         ASSIGN:        Create for receiving a shift1 c1.NumberOut=Create for receiving a shift1 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Create 101
;

4480$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c1:MinutesToBaseTime(1440):NEXT(4481$);

4481$         ASSIGN:        Create for shipmenta shift1 c1.NumberOut=Create for shipmenta shift1 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Create 102
;

4484$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c2:MinutesToBaseTime(1440):NEXT(4485$);

4485$         ASSIGN:        Create for shipmenta shift1 c2.NumberOut=Create for shipmenta shift1 c2.NumberOut + 1:NEXT(269$);


;
;
;     Model statements for module:  Create 103
;

4488$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c3:MinutesToBaseTime(1440):NEXT(4489$);

4489$         ASSIGN:        Create for receiving a shift1 c3.NumberOut=Create for receiving a shift1 c3.NumberOut + 1
                             :NEXT(314$);


;
;
;     Model statements for module:  Create 104
;

4492$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c3:MinutesToBaseTime(1440):NEXT(4493$);

4493$         ASSIGN:        Create for shipmenta shift1 c3.NumberOut=Create for shipmenta shift1 c3.NumberOut + 1:NEXT(341$);


;
;
;     Model statements for module:  Create 105
;

4496$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c4:MinutesToBaseTime(1440):NEXT(4497$);

4497$         ASSIGN:        Create for receiving a shift1 c4.NumberOut=Create for receiving a shift1 c4.NumberOut + 1
                             :NEXT(376$);


;
;
;     Model statements for module:  Create 106
;

4500$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c4:MinutesToBaseTime(1440):NEXT(4501$);

4501$         ASSIGN:        Create for shipmenta shift1 c4.NumberOut=Create for shipmenta shift1 c4.NumberOut + 1:NEXT(403$);


;
;
;     Model statements for module:  Create 107
;

4504$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c5:MinutesToBaseTime(1440):NEXT(4505$);

4505$         ASSIGN:        Create for receiving a shift1 c5.NumberOut=Create for receiving a shift1 c5.NumberOut + 1
                             :NEXT(438$);


;
;
;     Model statements for module:  Create 108
;

4508$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c5:MinutesToBaseTime(1440):NEXT(4509$);

4509$         ASSIGN:        Create for shipmenta shift1 c5.NumberOut=Create for shipmenta shift1 c5.NumberOut + 1:NEXT(465$);


;
;
;     Model statements for module:  Create 109
;

4512$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c1:MinutesToBaseTime(1440):NEXT(4513$);

4513$         ASSIGN:        Create for shipment c shift2 c1.NumberOut=Create for shipment c shift2 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Create 110
;

4516$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c2:MinutesToBaseTime(1440):NEXT(4517$);

4517$         ASSIGN:        Create for shipment c shift2 c2.NumberOut=Create for shipment c shift2 c2.NumberOut + 1:NEXT(287$);


;
;
;     Model statements for module:  Create 111
;

4520$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c3:MinutesToBaseTime(1440):NEXT(4521$);

4521$         ASSIGN:        Create for shipment c shift2 c3.NumberOut=Create for shipment c shift2 c3.NumberOut + 1:NEXT(359$);


;
;
;     Model statements for module:  Create 112
;

4524$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c4:MinutesToBaseTime(1440):NEXT(4525$);

4525$         ASSIGN:        Create for shipment c shift2 c4.NumberOut=Create for shipment c shift2 c4.NumberOut + 1:NEXT(421$);


;
;
;     Model statements for module:  Create 113
;

4528$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c5:MinutesToBaseTime(1440):NEXT(4529$);

4529$         ASSIGN:        Create for shipment c shift2 c5.NumberOut=Create for shipment c shift2 c5.NumberOut + 1:NEXT(483$);









